0

我正在安装 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"
},
4

2 回答 2

1

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

然后我跑了:

sudo apt-get install nodejs-legacy

在那之后,“yo meanjs”就像一个魅力。

希望能帮助到你

于 2014-12-29T16:14:43.560 回答
0

这可能是包依赖冲突,然后使用Bower.json中的解决方案我在这里添加了更长的答案

于 2015-02-07T17:05:11.353 回答