Difference between npm start and npm run start

前端 未结 3 951
我在风中等你
我在风中等你 2020-12-07 13:39

I have checked both commands npm start and npm run start, both works perfectly. I used create-react-app. But to make configuration changes in the C

3条回答
  •  有刺的猬
    2020-12-07 13:58

    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.

提交回复
热议问题