简体   繁体   中英

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

I am installing meanjs full stack express, angularjs frameworkf and I get following error

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

My package.json contains following

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

I ran into the same problem on a brand new ubuntu server. The error message was really misleading and I found that the problem was with the nodejs interpreter.

I then ran:

sudo apt-get install nodejs-legacy

And after that "yo meanjs" worked like a charm.

Hope it helps

It could be a package dependencies conflict then use resolutions in the Bower.json . i added a longer answer here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM