国产成人精品亚洲777人妖,欧美日韩精品一区视频,最新亚洲国产,国产乱码精品一区二区亚洲

您的位置:首頁技術文章
文章詳情頁

node.js - 啟動npm start 報錯 ,怎么辦

瀏覽:154日期:2024-07-21 15:21:51

問題描述

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的解釋(官網鏈接):

node.js - 啟動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的文件配置,

相關文章:
主站蜘蛛池模板: 日土县| 淮阳县| 新竹县| 尖扎县| 定州市| 长宁区| 肥西县| 宁远县| 叙永县| 三门县| 会东县| 金堂县| 呈贡县| 且末县| 孝义市| 武穴市| 临沂市| 蓬莱市| 乐东| 新宾| 柳河县| 海宁市| 乌兰浩特市| 峨眉山市| 三门县| 常山县| 盐山县| 武定县| 喀喇沁旗| 许昌市| 柳州市| 寻乌县| 康保县| 吉隆县| 兴化市| 澄城县| 皮山县| 洛川县| 井陉县| 新郑市| 康平县|