簡體   English   中英

`bower install --config.interactive = false` npm錯誤! 退出狀態1

[英]`bower install --config.interactive=false` npm ERR! Exit status 1

我正在安裝Meanjs Full Stack Express,AngularJS Frameworkf並且出現以下錯誤

npm ERR! meanjs@0.3.3 postinstall: `bower install --config.interactive=false`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the meanjs@0.3.3 postinstall script.
npm ERR! This is most likely a problem with the meanjs package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     bower install --config.interactive=false
npm ERR! You can get their info via:
npm ERR!     npm owner ls meanjs
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.13.0-36-generic
npm ERR! command "node" "/usr/bin/npm" "install"
npm ERR! cwd /home/ubuntu/pickingotest/pickingo
npm ERR! node -v v0.10.35
npm ERR! npm -v 1.3.26
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/ubuntu/pickingotest/pickingo/npm-debug.log
npm ERR! not ok code 0

我的package.json包含以下內容

"scripts": {
    "start": "grunt",
    "test": "grunt test",
    "postinstall": "bower install --config.interactive=false"
},

我在全新的ubuntu服務器上遇到了相同的問題。 錯誤消息確實令人誤解,我發現問題出在nodejs解釋器上。

然后我跑了:

sudo apt-get install nodejs-legacy

在那之后,“ yo meanjs”起了魔咒的作用。

希望能幫助到你

可能是程序包依賴關系沖突,然后在Bower.json中使用解決 方案 在這里添加了更長的答案

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM