npm start和 npm run start是等效关系。
npm start
npm run start
在一个npm管理项目中,一般默认有start的定义,且会经常使用,所以就在npm执行中简化输入目的设置了npm run start的简写,类似的还有npm stop、npm test等等。而其他的一些不太通用的命令项则只能通过npm run <命令项>的形式执行。
start
npm
npm stop
npm test
npm run <命令项>