Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error while executing command : "npm install" #3169

Open
FWICSS opened this issue Oct 9, 2024 · 6 comments
Open

error while executing command : "npm install" #3169

FWICSS opened this issue Oct 9, 2024 · 6 comments

Comments

@FWICSS
Copy link

FWICSS commented Oct 9, 2024

npm install
npm WARN deprecated [email protected]: this package is now deprecated
npm WARN deprecated [email protected]: PhantomJS development have stopped, use puppeteer or similar
npm WARN deprecated [email protected]: request has been deprecated, see request/request#3142
npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: Use uuid module instead
npm WARN deprecated [email protected]: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130

[email protected] install /data/dockerdir/udata_karudata/udata/node_modules/phantomjs-prebuilt
node install.js

sh: 1: node: Permission denied
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN [email protected] requires a peer of chai@^4.1.2 but none was installed.
npm WARN [email protected] requires a peer of webpack@^2.0.0 || ^3.0.0 || ^4.0.0 but none was installed.
npm WARN [email protected] requires a peer of sinon@>=2.1.0 <5 but none was installed.
npm WARN [email protected] requires a peer of babel-preset-es2015@^6.6.0 but none was installed.
npm ERR! Linux 6.8.0-41-generic
npm ERR! argv "/root/.nvm/versions/node/v6.9.5/bin/node" "/root/.nvm/versions/node/v6.9.5/bin/npm" "install"
npm ERR! node v6.9.5
npm ERR! npm v3.10.10
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! [email protected] install: node install.js
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] install script 'node install.js'.
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 phantomjs-prebuilt 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 information on how to open an issue for this project with:
npm ERR! npm bugs phantomjs-prebuilt
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls phantomjs-prebuilt
npm ERR! There is likely additional logging output above.

@maudetes
Copy link
Contributor

Hello ! Could you give more context on your env (OS, udata version)?
I think you may have an issue with your node version installed by nvm seeing the sh: 1: node: Permission denied.
Could you make sure you have a working node?

@FWICSS
Copy link
Author

FWICSS commented Oct 10, 2024

j'utilise la dernière version de udata sur Ubuntu 24.04.1

@FWICSS
Copy link
Author

FWICSS commented Oct 10, 2024

node --version
v6.9.5

@maudetes
Copy link
Contributor

You can check the node_modules permissions.
You can also try removing your node_modules folder and try a reinstall?
Are you using sudo?

@FWICSS
Copy link
Author

FWICSS commented Oct 11, 2024

i use user root i tried removing node_modules i have same result

@FWICSS
Copy link
Author

FWICSS commented Oct 11, 2024

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN [email protected] requires a peer of webpack@^2.0.0 || ^3.0.0 || ^4.0.0 but none was installed.
npm WARN [email protected] requires a peer of sinon@>=2.1.0 <5 but none was installed.
npm WARN [email protected] requires a peer of chai@^4.1.2 but none was installed.
npm WARN [email protected] requires a peer of babel-preset-es2015@^6.6.0 but none was installed.
npm ERR! Linux 6.8.0-41-generic
npm ERR! argv "/root/.nvm/versions/node/v6.9.5/bin/node" "/root/.nvm/versions/node/v6.9.5/bin/npm" "install"
npm ERR! node v6.9.5
npm ERR! npm v3.10.10
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! [email protected] install: node install.js
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] install script 'node install.js'.
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 phantomjs-prebuilt 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 information on how to open an issue for this project with:
npm ERR! npm bugs phantomjs-prebuilt
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls phantomjs-prebuilt
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /data/dockerdir/udata_karudata/udata/npm-debug.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants