Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. NPM install fail

NPM install fail

Added by Deleted user almost 10 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)

RE: NPM install fail - Added by Deleted user almost 10 years ago

Hey Björn,

Could you try removing /usr/local/lib/openproject/node_modules/, performing an npm cache clean and then reinstalling?

Cheers,

Alex

RE: NPM install fail - Added by Deleted user almost 10 years ago

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 both bundle install and npm install without any troubles.

Cheers,

Björn

  • (1 - 2/2)
Loading...