尤川豪   ·  3年前
445 貼文  ·  275 留言

npm run start 沒定義也可以執行

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
  分享   共 1,123 次點閱
共有 0 則留言
還沒有人留言。歡迎分享您的觀點、或是疑問。
您的留言
尤川豪
445 貼文  ·  275 留言

Devs.tw 是讓工程師寫筆記、網誌的平台。隨手紀錄、寫作,方便日後搜尋!

歡迎您一起加入寫作與分享的行列!

查看所有文章