Content
You are here:
NPM install fail
Added by Deleted user over 9 years ago
When upgrading to 4.1 I get the following error while trying to run npm install
:
TextileConverterBlockquoteStart09339cab-f4f4-4739-85b0-d02ba1f342e6 phantomjs@1.9.12 install /usr/local/lib/openproject/node_modules/phantomjs node install.js TextileConverterBlockquoteEnd09339cab-f4f4-4739-85b0-d02ba1f342e6 Download already available at /tmp/phantomjs/phantomjs-1.9.8-linux-x86_64.tar.bz2 Extracting tar contents (via spawned process) Removing /usr/local/lib/openproject/node_modules/phantomjs/lib/phantom Phantom installation failed { [Error: EACCES, unlink '/usr/local/lib/openproject/node_modules/phantomjs/lib/phantom/ChangeLog'] errno: -13, code: 'EACCES', path: '/usr/local/lib/openproject/node_modules/phantomjs/lib/phantom/ChangeLog' } Error: EACCES, unlink '/usr/local/lib/openproject/node_modules/phantomjs/lib/phantom/ChangeLog' at Error (native) npm ERR! Linux 3.2.0-4-amd64 npm ERR! argv "/home/openproject/nodeenv/bin/node" "/home/openproject/nodeenv/bin/npm" "install" npm ERR! node v0.12.4 npm ERR! npm v2.10.1 npm ERR! code ELIFECYCLE npm ERR! phantomjs@1.9.12 install: `node install.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the phantomjs@1.9.12 install script 'node install.js'. npm ERR! This is most likely a problem with the phantomjs package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node install.js npm ERR! You can get their info via: npm ERR! npm owner ls phantomjs npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /usr/local/lib/openproject/npm-debug.log
Replies (2)
Hey Björn,
Could you try removing
/usr/local/lib/openproject/node_modules/
, performing annpm cache clean
and then reinstalling?Cheers,
Alex
Hi Alex,
Well, clearing the cache did not help with my problem. But I have managed to get it working by following the manual install guide from start to finish.
I think that my problems came from the fact that I was running everything as a root user. This has worked perfectly until now. But running
npm install
as root user did not work. So I made an special openproject user (as suggested in the installation guide), updated ruby via rvm for that user, installed nodeenv and then I was able to run bothbundle install
andnpm install
without any troubles.Cheers,
Björn