在Mac OS X 10.11.3下运行npm start 提示:npm ERR! Darwin 15.3.0

发布于 2022-09-02 10:03:15 字数 455 浏览 19 评论 0

运行npm start
提示错误:

npm ERR! Darwin 15.3.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v5.7.1
npm ERR! npm  v3.6.0

npm ERR! missing script: start
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/用户名/snapterest/npm-debug.log

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

兮颜 2022-09-09 10:03:15

npm run start 或者 npm run-script start
并且需要在package.json的 scripts 中定义start为字段的命令

留一抹残留的笑 2022-09-09 10:03:15

你没有写 start 的 script

少钕鈤記 2022-09-09 10:03:15

检查当前目录下的package.json里的"script"下是否存在"start"这个属性。

瀟灑尐姊 2022-09-09 10:03:15

package.json

{
  "scripts": {
    "start": "echo 'hello world!'"
  }
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文