Difference between npm start and npm run start

前端 未结 3 976
我在风中等你
我在风中等你 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 14:05

    npm start is just an alias for npm run start. Look in the package.json under the "scripts" property, to see the commands available. For example, for create-react-app:

    "scripts": {
        "start": "react-scripts start",
        "build": "react-scripts build",
        "test": "react-scripts test",
        "eject": "react-scripts eject"
    }
    

提交回复
热议问题