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
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.
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"
}
npm start is the short form for npm run start. So, its one and the same thing.