Content
You are here:
problem on npm install
Added by sibo huang about 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)
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
Oliver Günther wrote:
thank you very much.Problem solved .
Oliver Günther wrote:
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:
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.
@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
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:
Best,
Oliver
I ran the command
npm install npm
4.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
npm is not node. Use your package manager or a node version manager (e.g., nvm) to change your node installation.
npm is not node. Use your package manager or a node version manager (e.g., nvm) to change your node installation.
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
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
What should i do ?
Same error with node 6.9.1 and npm 3.10.8 ;(
And last fight for now…
Add to package.json
Install node 7.2.0, npm 4.0.3
npm install —no-optional
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 …
Hi,
can you please send a pull request to update the documentation?
Thanks
Niels
You need to install npn before running the configure command
sudo apt npn install