Content
You are here:
The manual installation guide fails to 'npm install' when it calls 'bower install'
Added by Tomi Järvi over 9 years ago
Hi!
I followed the manual installation guide but it fails when I call ‘npm install’. It seems that fail happens when it calls “bower install —config.interactive=false”. Do you have any idea what might be the cause of this?
console information:
openproject@hidden:~/openproject-ce$ npm install TextileConverterBlockquoteStart09339cab-f4f4-4739-85b0-d02ba1f342e6 openproject@0.1.0 postinstall /home/openproject/openproject-ce cd frontend && npm install TextileConverterBlockquoteEnd09339cab-f4f4-4739-85b0-d02ba1f342e6 npm WARN package.json openproject-frontend@0.1.0 No repository field. npm WARN package.json openproject-frontend@0.1.0 No license field. TextileConverterBlockquoteStart09339cab-f4f4-4739-85b0-d02ba1f342e6 openproject-frontend@0.1.0 postinstall /home/openproject/openproject-ce/frontend ./node_modules/bower/bin/bower install --config.interactive=false TextileConverterBlockquoteEnd09339cab-f4f4-4739-85b0-d02ba1f342e6 module.js:338 throw err; ^ Error: Cannot find module 'q' at Function.Module._resolveFilename (module.js:336:15) at Function.Module._load (module.js:278:25) at Module.require (module.js:365:17) at require (module.js:384:17) at Object.<anonymous> (/home/openproject/openproject-ce/frontend/node_modules/bower/bin/bower:6:9) at Module._compile (module.js:460:26) at Object.Module._extensions..js (module.js:478:10) at Module.load (module.js:355:32) at Function.Module._load (module.js:310:12) at Function.Module.runMain (module.js:501:10) npm ERR! Linux 3.13.0-57-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-frontend@0.1.0 postinstall: `./node_modules/bower/bin/bower install --config.interactive=false` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the openproject-frontend@0.1.0 postinstall script './node_modules/bower/bin/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! ./node_modules/bower/bin/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.13.0-57-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
npm-debug.log information:
0 info it worked if it ends with ok 1 verbose cli [ '/home/openproject/.nodenv/versions/0.12.7/bin/node', 1 verbose cli '/home/openproject/.nodenv/versions/0.12.7/bin/npm', 1 verbose cli 'install' ] 2 info using npm@2.11.3 3 info using node@v0.12.7 4 verbose readDependencies loading dependencies from /home/openproject/openproject-ce/package.json 5 verbose install where, deps [ '/home/openproject/openproject-ce', [] ] 6 verbose install where, peers [ '/home/openproject/openproject-ce', [] ] 7 verbose installManyTop reading for lifecycle /home/openproject/openproject-ce/package.json 8 info preinstall openproject@0.1.0 9 verbose readDependencies loading dependencies from /home/openproject/openproject-ce/package.json 10 silly install resolved [] 11 info build /home/openproject/openproject-ce 12 info linkStuff openproject@0.1.0 13 silly linkStuff openproject@0.1.0 has /home/openproject as its parent node_modules 14 verbose linkBins openproject@0.1.0 15 verbose linkMans openproject@0.1.0 16 verbose rebuildBundles openproject@0.1.0 17 info install openproject@0.1.0 18 info postinstall openproject@0.1.0 19 verbose unsafe-perm in lifecycle true 20 info openproject@0.1.0 Failed to exec postinstall script 21 verbose stack Error: openproject@0.1.0 postinstall: `cd frontend && npm install` 21 verbose stack Exit status 1 21 verbose stack at EventEmitter.<anonymous> (/home/openproject/.nodenv/versions/0.12.7/lib/node_modules/npm/lib/utils/lifecycle.js:213:16) 21 verbose stack at EventEmitter.emit (events.js:110:17) 21 verbose stack at ChildProcess.<anonymous> (/home/openproject/.nodenv/versions/0.12.7/lib/node_modules/npm/lib/utils/spawn.js:24:14) 21 verbose stack at ChildProcess.emit (events.js:110:17) 21 verbose stack at maybeClose (child_process.js:1015:16) 21 verbose stack at Process.ChildProcess._handle.onexit (child_process.js:1087:5) 22 verbose pkgid openproject@0.1.0 23 verbose cwd /home/openproject/openproject-ce 24 error Linux 3.13.0-57-generic 25 error argv "/home/openproject/.nodenv/versions/0.12.7/bin/node" "/home/openproject/.nodenv/versions/0.12.7/bin/npm" "install" 26 error node v0.12.7 27 error npm v2.11.3 28 error code ELIFECYCLE 29 error openproject@0.1.0 postinstall: `cd frontend && npm install` 29 error Exit status 1 30 error Failed at the openproject@0.1.0 postinstall script 'cd frontend && npm install'. 30 error This is most likely a problem with the openproject package, 30 error not with npm itself. 30 error Tell the author that this fails on your system: 30 error cd frontend && npm install 30 error You can get their info via: 30 error npm owner ls openproject 30 error There is likely additional logging output above. 31 verbose exit [ 1, true ]
Here is information from my Ubuntu server:
DigitalOcean Linux <hidden> 3.13.0-57-generic #95-Ubuntu SMP Fri Jun 19 09:28:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux Distributor ID: Ubuntu Description: Ubuntu 14.04.3 LTS Release: 14.04 Codename: trusty
Best regards,
Tomi Järvi
Replies (2)
Hi!
May be an workaround exists to solve this problem?
Best regards,
Vitaliy
Hello,
I'm facing the same exact problem did anyone managed to solve this issue?
regards,