Difference between npm start and npm run start
npm start
is the short form for npm run start
. So, its one and the same thing.
npm test
, npm start
, npm restart
, and npm stop
are all aliases for npm run xxx.
For all other scripts
you define, you need to use the npm run xxx
syntax.
See the docs at https://docs.npmjs.com/cli/run-script for more information.