`bower install --config.interactive = false` npm ERR!退出状态1

时间:2014-12-29 13:05:03

标签: angularjs node.js bower meanjs

我正在安装卑鄙的js full stack express,angularjs框架,我得到以下错误

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"
},

2 个答案:

答案 0 :(得分:1)

我在一个全新的ubuntu服务器上遇到了同样的问题。错误消息确实具有误导性,我发现问题出在nodejs解释器上。

然后我跑了:

sudo apt-get install nodejs-legacy

之后" yo meanjs"像魅力一样工作。

希望有所帮助

答案 1 :(得分:0)

可能是包依赖项冲突,然后在 Bower.json 中使用 resolution 。我添加了更长的答案here