Devs.tw 是讓工程師寫筆記、網誌的平台。歡迎您隨手紀錄、寫作,方便日後搜尋!
When you issue the command npm start from the root directory of your Node JS project, the 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.
If your package.json does not have any scripts object or if the scripts object does not have a start key, it will run the command node server.js instead.
沒定義就會是
node server.js