opendatateam / udata

Customizable and skinnable social platform dedicated to open data.
http://udata.readthedocs.org
GNU Affero General Public License v3.0
239 stars 87 forks source link

error while executing command : "npm install" #3169

Open FWICSS opened 2 weeks ago

FWICSS commented 2 weeks ago

npm install npm WARN deprecated phantomjs-prebuilt@2.1.7: this package is now deprecated npm WARN deprecated karma-phantomjs-launcher@1.0.4: PhantomJS development have stopped, use puppeteer or similar npm WARN deprecated request@2.67.0: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated mkdirp@0.5.0: 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 har-validator@2.0.6: this library is no longer supported npm WARN deprecated node-uuid@1.4.8: Use uuid module instead npm WARN deprecated tough-cookie@2.2.2: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130

phantomjs-prebuilt@2.1.7 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 fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN chai-string@1.5.0 requires a peer of chai@^4.1.2 but none was installed. npm WARN expose-loader@0.7.5 requires a peer of webpack@^2.0.0 || ^3.0.0 || ^4.0.0 but none was installed. npm WARN karma-sinon-chai@1.3.4 requires a peer of sinon@>=2.1.0 <5 but none was installed. npm WARN vue-loader@8.5.3 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! phantomjs-prebuilt@2.1.7 install: node install.js npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the phantomjs-prebuilt@2.1.7 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 commented 2 weeks ago

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 commented 2 weeks ago

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

FWICSS commented 2 weeks ago

node --version v6.9.5

maudetes commented 2 weeks ago

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 commented 2 weeks ago

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

FWICSS commented 2 weeks ago

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 fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN expose-loader@0.7.5 requires a peer of webpack@^2.0.0 || ^3.0.0 || ^4.0.0 but none was installed. npm WARN karma-sinon-chai@1.3.4 requires a peer of sinon@>=2.1.0 <5 but none was installed. npm WARN chai-string@1.5.0 requires a peer of chai@^4.1.2 but none was installed. npm WARN vue-loader@8.5.3 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! phantomjs-prebuilt@2.1.7 install: node install.js npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the phantomjs-prebuilt@2.1.7 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