The relationship between npm start and npm run start?

what is the relationship between npm start and npm run start?

if there is a start entry in "scripts" of package.json

executing npm run start and npm start seems to have the same effect

but if it is another command item,

the effect of executing npm run "other commands" is not the same as that of npm "other commands"

solve the problem with the boss


Thank you for inviting
npm start and npm run start are equivalent. In a npm management project, there is generally a default definition of start , and it is often used, so the abbreviation of npm run start is set in the npm execution, similar to npm stop , npm test and so on. Other less general command items can only be executed in the form of npm run < command item > .


npm start = npm run start


https://docs.npmjs.com/cli/ru.


npm start is the abbreviated form of npm run start. The teaching itinerary of Mr. Ruan:

clipboard.png

Menu