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. problem on npm install

problem on npm install

Added by sibo huang over 8 years ago

When I typed “npm install”,it show these errors:

npm WARN openproject-frontend@0.1.0 No repository field.
npm WARN openproject-frontend@0.1.0 No license field.
npm ERR! Linux 3.16.0-4-amd64
npm ERR! argv “/home/huang/nodeenv/bin/node” “/home/huang/nodeenv/bin/npm” “install”
npm ERR! node v7.0.0
npm ERR! npm v3.10.8
npm ERR! code EBADPLATFORM

npm ERR! notsup Unsupported platform for fsevents@1.0.14: wanted {os (current: {os)
npm ERR! notsup Valid OS: darwin
npm ERR! notsup Valid Arch: any
npm ERR! notsup Actual OS: linux
npm ERR! notsup Actual Arch: x64

npm ERR! Please include the following file with any support request:
npm ERR! /home/huang/openproject/frontend/npm-debug.log

i am newer,what should i do?


Replies (12)

RE: problem on npm install - Added by Oliver Günther over 8 years ago

Hi Sibo,

npm 3.10.8 and 3.10.9 have a bug regarding the shrinkwrap. Please upgrade to npm 4.0

npm install -g npm@4.0

https://github.com/npm/npm/issues/14042

Best,
Oliver

RE: problem on npm install - Added by sibo huang over 8 years ago

Oliver Günther wrote:

Hi Sibo,

npm 3.10.8 and 3.10.9 have a bug regarding the shrinkwrap. Please upgrade to npm 4.0

[…]

https://github.com/npm/npm/issues/14042

Best,
Oliver

thank you very much.Problem solved .

RE: problem on npm install - Added by sibo huang over 8 years ago

Oliver Günther wrote:

Hi Sibo,

npm 3.10.8 and 3.10.9 have a bug regarding the shrinkwrap. Please upgrade to npm 4.0

[…]

https://github.com/npm/npm/issues/14042

Best,
Oliver

But I also have a problem.when I type:
npm run webpack
It shows me :
sh: 1: webpack :not found
then I type:
npm install webpack -g
npm rum webpack

it shows me many errors:

openproject@0.1.0 webpack /home/huang/openproject
cd frontend && npm run webpack && cd ..

openproject-frontend@0.1.0 webpack /home/huang/openproject/frontend
webpack —colors —progress

module.js:474
throw err;
^

Error: Cannot find module ‘lodash’
at Function.Module._resolveFilename (module.js:472:15)
at Function.Module._load (module.js:420:25)
at Module.require (module.js:500:17)
at require (internal/module.js:20:19)
at Object. (/home/huang/openproject/frontend/webpack-main-config.js:32:9)
at Module._compile (module.js:573:32)
at Object.Module._extensions..js (module.js:582:10)
at Module.load (module.js:490:32)
at tryModuleLoad (module.js:449:12)
at Function.Module._load (module.js:441:3)

npm ERR! Linux 3.16.0-4-amd64
npm ERR! argv “/home/huang/nodeenv/bin/node” “/home/huang/nodeenv/bin/npm” “run” “webpack”
npm ERR! node v7.0.0
npm ERR! npm v4.0.1
npm ERR! code ELIFECYCLE
npm ERR! openproject-frontend@0.1.0 webpack: `webpack —colors —progress`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the openproject-frontend@0.1.0 webpack script ‘webpack —colors —progress’.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, 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! webpack —colors —progress
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs openproject-frontend
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls openproject-frontend
npm ERR! There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! Please include the following file with any support request:
npm ERR! /home/huang/openproject/frontend/npm-debug.log

npm ERR! Linux 3.16.0-4-amd64
npm ERR! argv “/home/huang/nodeenv/bin/node” “/home/huang/nodeenv/bin/npm” “run” “webpack”
npm ERR! node v7.0.0
npm ERR! npm v4.0.1
npm ERR! code ELIFECYCLE

but I don’t find this file in openproject.what’s wrong ? what should i do? thanks again.

RE: problem on npm install - Added by Rahul Buragohain over 8 years ago

@Sibo Huang

Can you please let me know what is the command you gave in updating node version to 7.0.0?? My node version is still v0.12.4. I am bale to update npm to the latest version, but I am stuck with update node. I am getting the following error:

npm WARN npm npm does not support Node.js v0.12.4 npm WARN npm You should probably upgrade to a newer version of node as we npm WARN npm can't make any promises that npm will work with this version. npm WARN npm You can find the latest version at https://nodejs.org/ npm ERR! Linux 2.6.32-504.el6.x86_64 npm ERR! argv "node" "/home/openproject/openproject/nodeenv/bin/npm" "-g" "install" "fsevents" npm ERR! node v0.12.4 npm ERR! npm v4.0.2 npm ERR! code EBADPLATFORM

RE: problem on npm install - Added by Oliver Günther over 8 years ago

We suggest to upgrade to node LTS 6.9.1 using, e.g., nvm. It does have a bug with NPM regarding fsevents optional dependencies (its only required for Mac OS X), so please also upgrade npm to at least 4.0:

npm install npm@4.0

Best,
Oliver

RE: problem on npm install - Added by Rahul Buragohain over 8 years ago

I ran the command npm install npm4.0@ but still my node version didn’t get updated whereas npm version got updated. Am I missing something??

(nodeenv)[openproject@openproject openproject]$ npm -v
4.0.2
(nodeenv)[openproject@openproject openproject]$ node -v
v0.12.4

RE: problem on npm install - Added by Oliver Günther over 8 years ago

npm is not node. Use your package manager or a node version manager (e.g., nvm) to change your node installation.

RE: problem on npm install - Added by Oliver Günther over 8 years ago

npm is not node. Use your package manager or a node version manager (e.g., nvm) to change your node installation.

RE: problem on npm install - Added by Grzegorz Żyła over 8 years ago

I have a similar problem on migrate from 6.0.0 to 6.1.0.
I’ve reinstall whole old (0.12) nodeenv (pip uninstall nodeenv, pip install nodeenv). Now is 1.0.0 version.
npm is 4.0.3
node is 7.0.0
I’ve create environment in /home/openproject with

nodeenv --node=7.0.0 --npm=4.0.3 nodeenv
nodeenv nodeenv
source ./nodeenv/bin/activate
npm -g install bower

as openproject user.
Next, cd openproject (fullpath is /home/openproject/openproject) and execute command npm install.
Rails is 5.0.0
Ruby is 2.3.0

There is a output

npm WARN openproject-frontend@0.1.0 No repository field.
npm WARN openproject-frontend@0.1.0 No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.0.14 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.14: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! Linux 2.6.32-573.el6.x86_64
npm ERR! argv "/usr/local/bin/node" "/usr/bin/npm" "install"
npm ERR! node v7.0.0
npm ERR! npm  v4.0.3
npm ERR! code ELIFECYCLE
npm ERR! openproject-frontend@0.1.0 postinstall: `bower install --config.interactive=false`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the openproject-frontend@0.1.0 postinstall script 'bower install --config.interactive=false'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, 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 information on how to open an issue for this project with:
npm ERR!     npm bugs openproject-frontend
npm ERR! Or if that isn't available, 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/frontend/npm-debug.log

npm ERR! Linux 2.6.32-573.el6.x86_64
npm ERR! argv "/usr/local/bin/node" "/usr/bin/npm" "install"
npm ERR! node v7.0.0
npm ERR! npm  v4.0.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! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, 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 information on how to open an issue for this project with:
npm ERR!     npm bugs openproject
npm ERR! Or if that isn't available, 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/npm-debug.log

What should i do ?

Same error with node 6.9.1 and npm 3.10.8 ;(

npm WARN openproject-frontend@0.1.0 No repository field.
npm WARN openproject-frontend@0.1.0 No license field.
npm ERR! Linux 2.6.32-573.el6.x86_64
npm ERR! argv "/home/openproject/.nvm/versions/node/v6.9.1/bin/node" "/home/openproject/.nvm/versions/node/v6.9.1/bin/npm" "install"
npm ERR! node v6.9.1
npm ERR! npm  v3.10.8
npm ERR! code EBADPLATFORM

npm ERR! notsup Unsupported platform for fsevents@1.0.14: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! notsup Valid OS:    darwin
npm ERR! notsup Valid Arch:  any
npm ERR! notsup Actual OS:   linux
npm ERR! notsup Actual Arch: x64

npm ERR! Please include the following file with any support request:
npm ERR!     /home/openproject/openproject/frontend/npm-debug.log

npm ERR! Linux 2.6.32-573.el6.x86_64
npm ERR! argv "/home/openproject/.nvm/versions/node/v6.9.1/bin/node" "/home/openproject/.nvm/versions/node/v6.9.1/bin/npm" "install" "--no-optional"
npm ERR! node v6.9.1
npm ERR! npm  v3.10.8
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! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, 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 information on how to open an issue for this project with:
npm ERR!     npm bugs openproject
npm ERR! Or if that isn't available, 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/npm-debug.log

And last fight for now…

Add to package.json

"optionalDependencies": {
    "fsevents": "*"
  },

Install node 7.2.0, npm 4.0.3

npm install —no-optional

bower angular#~1.x                        cached https://github.com/angular/bower-angular.git#1.5.9
bower angular#~1.x                      validate 1.5.9 against https://github.com/angular/bower-angular.git#~1.x
bower angular#~1.5                        cached https://github.com/angular/bower-angular.git#1.5.9
bower angular#~1.5                      validate 1.5.9 against https://github.com/angular/bower-angular.git#~1.5
bower angular                         resolution Unsuitable resolution declared for angular: 1.5.8
bower                                  ECONFLICT Unable to find suitable version for angular

npm WARN openproject-frontend@0.1.0 No repository field.
npm WARN openproject-frontend@0.1.0 No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.0.14 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.14: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! Linux 2.6.32-573.el6.x86_64
npm ERR! argv "/home/openproject/.nvm/versions/node/v7.2.0/bin/node" "/home/openproject/openproject/node_modules/.bin/npm" "install"
npm ERR! node v7.2.0
npm ERR! npm  v4.0.3
npm ERR! code ELIFECYCLE
npm ERR! openproject-frontend@0.1.0 postinstall: `bower install --config.interactive=false`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the openproject-frontend@0.1.0 postinstall script 'bower install --config.interactive=false'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, 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 information on how to open an issue for this project with:
npm ERR!     npm bugs openproject-frontend
npm ERR! Or if that isn't available, 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/frontend/npm-debug.log

npm ERR! Linux 2.6.32-573.el6.x86_64
npm ERR! argv "/home/openproject/.nvm/versions/node/v7.2.0/bin/node" "/home/openproject/.nvm/versions/node/v7.2.0/bin/npm" "install" "--no-optional"
npm ERR! node v7.2.0
npm ERR! npm  v4.0.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! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, 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 information on how to open an issue for this project with:
npm ERR!     npm bugs openproject
npm ERR! Or if that isn't available, 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/npm-debug.log

RE: problem on npm install - Added by _ KUL over 8 years ago

I was up all night trying to solve the problem with npm install … And it was necessary to perform only npm install -g npm@4.0
PLEASE! Update the instructions on the page https://www.openproject.org/open-source/download/manual-installation-guide/
I am sure that many people have suffered …

RE: problem on npm install - Added by Niels Lindenthal over 8 years ago

Hi,

can you please send a pull request to update the documentation?

Thanks
Niels

RE: problem on npm install - Added by Rishabh Bahukhandi about 5 years ago

You need to install npn before running the configure command

sudo apt npn install

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