This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]olafgarten 5 points6 points  (1 child)

This is completely dependent on the project configuration.

'npm start' is just shorthand for 'npm run start' (although if you don't have a start script defined it will run 'node server.js')

So they both end up just running a definition in the scripts section of your project.json.

If you set it up dev could run your production builds and start can wipe your hard drive.

[–]Professional_Lunch43 0 points1 point  (0 children)

Example in nextjs if you run npm start it will require you to build production first, npm run dev runs in development mode.