Content
Problem on npm installation
Added by tong cat about 9 years ago
When I typed “npm install”, it will stuck at:
“make: Leaving directory `/home/openproject/openproject-ce/frontend/node_modules/protractor/node_modules/selenium-webdriver/node_modules/ws/node_modules/bufferutil/build’ ”
After I issued the commands below:
rm -fR ~/.npm
npm cache clean
run again with “npm install”, it show up these errors:
npm ERR! Linux 3.19.0-25-generic
npm ERR! argv “/home/openproject/.nodenv/versions/0.12.7/bin/node” “/home/openproject/.nodenv/versions/0.12.7/bin/npm” “install”
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! openproject-frontend@0.1.0 postinstall: `bower install —config.interactive=false`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the openproject-frontend@0.1.0 postinstall script ‘bower install —config.interactive=false’.
npm ERR! This is most likely a problem with the openproject-frontend 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 openproject-frontend
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/openproject/openproject-ce/frontend/npm-debug.log
npm ERR! Linux 3.19.0-25-generic
npm ERR! argv “/home/openproject/.nodenv/versions/0.12.7/bin/node” “/home/openproject/.nodenv/versions/0.12.7/bin/npm” “install”
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! code ELIFECYCLE
npm ERR! openproject@0.1.0 postinstall: `cd frontend && npm install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the openproject@0.1.0 postinstall script ‘cd frontend && npm install’.
npm ERR! This is most likely a problem with the openproject package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! cd frontend && npm install
npm ERR! You can get their info via:
npm ERR! npm owner ls openproject
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/openproject/openproject-ce/npm-debug.log
Replies (2)
Gt better the npm-debug.log, it actually tells you more.
Problem solved by updating npm.