Top Menu

Jump to content
Home
    • Projects
    • Work packages
    • 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
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Professional 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?
      Create a new account

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
  • Roadmap
  • Work packages
  • Calendars
  • Team planners
  • Boards
  • Forums
  • Wiki
    • Table of contents
      • Expanded. Click to collapseCollapsed. Click to showDeveloper
        • Hierarchy leafAccessibility Checklist
        • Hierarchy leafCode Review Guidelines
        • Expanded. Click to collapseCollapsed. Click to showContribution
          • Hierarchy leafGit Workflow
          • Hierarchy leafTranslations
        • Expanded. Click to collapseCollapsed. Click to showDeveloping Plugins
          • Hierarchy leafDeveloping an OmniAuth Authentication Plugin
        • Hierarchy leafRelease Process
        • Hierarchy leafReport a bug
        • Hierarchy leafSecurity
        • Hierarchy leafSetting up an OpenLDAP server for testing
        • Hierarchy leafTheme Features
      • Hierarchy leafDownload
      • Expanded. Click to collapseCollapsed. Click to showFeature tour
        • Hierarchy leafRelease Notes OpenProject 30
        • Expanded. Click to collapseCollapsed. Click to showRelease Notes OpenProject 30 - Overview
          • Hierarchy leafGlossary
          • Hierarchy leafRelease Notes - Accessibility
          • Hierarchy leafRelease Notes - Accessibility changes
          • Hierarchy leafRelease Notes - Add work package queries as menu items to sidebar
          • Hierarchy leafRelease Notes - Copy projects based on Templates
          • Hierarchy leafRelease Notes - Design changes
          • Hierarchy leafRelease Notes - Fixed Bugs
          • Hierarchy leafRelease Notes - Keyboard Shortcuts
          • Hierarchy leafRelease Notes - Project settings
          • Hierarchy leafRelease Notes - Ruby&Rails Update
          • Hierarchy leafRelease Notes - Security
          • Hierarchy leafRelease Notes - Timelines
          • Hierarchy leafRelease Notes - Work packages
      • Hierarchy leafHowto create animated gifs
      • Hierarchy leafMigration Squashing
      • Hierarchy leafMod security
      • Hierarchy leafNew work package page
      • Hierarchy leafOP3 to OP4 Debian upgrade
      • Hierarchy leafOP4 Ubuntu1404 Stable with MySQL in production
      • Hierarchy leafOpenProject 40 Development Setup
      • Expanded. Click to collapseCollapsed. Click to showOpenProject Foundation
        • Hierarchy leafBoards
        • Hierarchy leafMembers
        • Hierarchy leafOPF-Meetings
        • Hierarchy leafStatutes
      • Expanded. Click to collapseCollapsed. Click to showRelease Notes
        • Hierarchy leafOpenProject released on Bitnami
      • Expanded. Click to collapseCollapsed. Click to showRelease Notes OpenProject 40 - Overview
        • Hierarchy leafRelease Notes OpenProject 40 - Accessibility improvements
        • Hierarchy leafRelease Notes OpenProject 40 - Column header functions in work package table
        • Hierarchy leafRelease Notes OpenProject 40 - Improved Design
        • Hierarchy leafRelease Notes OpenProject 40 - Integrated query title on work package page
        • Hierarchy leafRelease Notes OpenProject 40 - Integrated toolbar on work package page
        • Hierarchy leafRelease Notes OpenProject 40 - OmniAuth integration for OpenProject
        • Hierarchy leafRelease Notes OpenProject 40 - Work package details pane
      • Expanded. Click to collapseCollapsed. Click to showSecurity and privacy
        • Hierarchy leafFAQ
      • Expanded. Click to collapseCollapsed. Click to showSupport
        • Expanded. Click to collapseCollapsed. Click to showDownload and Installation
          • Hierarchy leafInstallation MacOS
          • Expanded. Click to collapseCollapsed. Click to showInstallation OpenProject 3 0
            • Hierarchy leafDebian Stable with MySQL in production
            • Hierarchy leafInstallation Ubuntu
            • Hierarchy leafInstallation Windows
            • Hierarchy leafInstallation on Centos 65 x64 with Apache and PostgreSQL 93
          • Expanded. Click to collapseCollapsed. Click to showInstallation OpenProject 40
            • Hierarchy leafOP4 Debian Stable with MySQL in production
          • Expanded. Click to collapseCollapsed. Click to showMigration paths
            • Hierarchy leafFrom Chilliproject to OpenProject
            • Hierarchy leafMigration 15 to 30
            • Hierarchy leafMigration 24 to 30
            • Hierarchy leafMigration Redmine 2x › OpenProject 30
            • Hierarchy leafOpenProject 3 Migration
          • Hierarchy leafOpenProject 40
        • Expanded. Click to collapseCollapsed. Click to showNews
          • Hierarchy leafNew OpenProject Translations Plugin
          • Hierarchy leafNew Plugin on OpenProjectorg Local Avatars
          • Hierarchy leafNew design for OpenProject
          • Hierarchy leafNews Accessibility workshop for OpenProject
          • Hierarchy leafNews Glossary for OpenProject
          • Hierarchy leafNews Heartbleed fixed
          • Hierarchy leafNews Icon Fonts
          • Hierarchy leafNews OpenProject 30 Release
          • Hierarchy leafNews Release GitHub Integration Plugin
          • Hierarchy leafNews Success Story Deutsche Telekom
          • Hierarchy leafNews Timelines
          • Hierarchy leafOpenProject 3013 released
          • Hierarchy leafOpenProject 3017 released
          • Hierarchy leafOpenProject 40 released
          • Hierarchy leafOpenProject 40 will be coming soon
          • Hierarchy leafOpenProject 405 released
          • Hierarchy leafOpenProject and pkgrio
          • Hierarchy leafOpenProject news moved to a new blog
          • Hierarchy leafOpenProjectBitnami
          • Hierarchy leafPackager version with plugins released ("Community edition")
          • Hierarchy leafRegistration OpenProject-Foundation
          • Hierarchy leafRelease OpenProject AuthPlugins
          • Hierarchy leafUpdates on OpenProject
          • Hierarchy leafWe need your feedback for the the new fullscreen view for work packages
        • Hierarchy leafOpenProject Plug-Ins
      • Hierarchy leafWiki
You are here:
  • Forums
  • Support Installation & Updates

Content

problem on npm install

Added by sibo huang over 6 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 6 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 6 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 6 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 about 6 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 about 6 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 about 6 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 about 6 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 about 6 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 about 6 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 about 6 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 about 6 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 almost 3 years ago

You need to install npn before running the configure command

sudo apt npn install

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