Open TonyGoodDay2 opened 7 years ago
When you issue the command npm start from the root directory of your nodejs project, node will look for a scripts object in your package.json file. If found, it will look for a script with the key start and run the command specified as its value.
This runs an arbitrary command specified in the package's "start" property of its "scripts" object. If no "start" property is specified on the "scripts" object, it will run node server.js . As of npm@2.0.0 , you can use custom arguments when executing scripts.
What does "npm-start" do?