node.js - 启动npm start 报错 ,怎么办
问题描述
verbose pkgid doracms@1.1.116 verbose cwd /Users/myjianyue/Desktop/projectsSpace/express/DoraCMS17 error Darwin 16.4.018 error argv '/usr/local/bin/node' '/usr/local/bin/npm' 'start' 'app.js'19 error node v6.9.520 error npm v3.10.1021 error code ELIFECYCLE22 error doracms@1.1.1 start: node ./bin/www 'app.js'22 error Exit status 123 error Failed at the doracms@1.1.1 start script ’node ./bin/www 'app.js'’.23 error Make sure you have the latest version of node.js and npm installed.23 error If you do, this is most likely a problem with the doracms package,23 error not with npm itself.23 error Tell the author that this fails on your system:23 error node ./bin/www 'app.js'23 error You can get information on how to open an issue for this project with:23 error npm bugs doracms23 error Or if that isn’t available, you can get their info via:23 error npm owner ls doracms23 error There is likely additional logging output above.24 verbose exit [ 1, true ]
问题解答
回答1:贴出npm官网对npm start的解释(官网链接):
就是说:npm start 会默认执行package.json中scripts对象下'start'字段对应的语句,如果scripts对象下没有设置”start“字段的值,则npm会默认执行这条语句:
node server.js
请先检查package.json中的配置,scripts下是否有start字段,如没有,看是否有对应的server.js文件。
回答2:Make sure you have the latest version of node.js and npm installed. If you do, this is most likely a problem with the doracms package,not with npm itself.Tell the author that this fails on your system:
这是上面的错误提示
回答3:贴一下你的package.json的文件配置,
相关文章:
1. myeclipse中有AB两个项目,A项目的java文件用GBK编码,B项目用utf-8编码,怎么办?2. java.lang.Runtime.getRuntime().exec(cmd)命令中参数不能用空格怎么办?3. javascript - Html5做移到端定位,获取授权拒绝了怎么办?4. python - 用scrapy写爬虫,发送请求后,服务器全都直接返回202,该怎么办呢?5. javascript - web网页版app返回上一页按钮在ios设备失效怎么办?安卓上可以,代码如下,请大神帮助,万分感谢。6. 安装 broswersync 遇到的问题,这个怎么办7. phpstudy启动不了服务里面的进程,怎么办?8. java - 安卓电视盒子取得了root权限但是不能安装第三方应用,请问该怎么办?9. JavaScript如何循序渐进,有效的学习?看不下去怎么办?10. javascript - vue路由-浏览器返回按钮重复的返回之前点击过的页面怎么办?