Après l'installation classique des librairies via npm-node14 install ;
j'ai une erreur concernant la librairie argon2 qui semble ne pas pouvoir consommer la version actuelle de /lib/x86_64-linux-gnu/libc.so.6
Y'a t il une solution rapide pour régler cela ?
la faq du readme propose 2 solutions qui ne sont pas applicables : https://github.com/ranisalt/node-argon2#readme car pas les droits suffisant en Cloud Web.
1. Force build from source on install.
$ npm-node14 install argon2 --build-from-source
2. Ignore node-argon2 install script and build manually.
$ npm-node14 install argon2 --ignore-scripts
$ npx-node14 node-pre-gyp rebuild -C ./node_modules/argon2
—
lunetiu@cloudweb-ssh:~/api $ npx-node14 node-pre-gyp rebuild -C ./node_modules/argon2
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp@1.0.9
node-pre-gyp info using node@14.19.0 | linux | x64
node-pre-gyp info chdir ./node_modules/argon2
gyp info it worked if it ends with ok
gyp info using node-gyp@9.0.0
gyp info using node@14.19.0 | linux | x64
gyp info ok
gyp info it worked if it ends with ok
gyp info using node-gyp@9.0.0
gyp info using node@14.19.0 | linux | x64
gyp WARN chdir ./node_modules/argon2 is not a directory
gyp ERR! find Python
gyp ERR! find Python Python is not set from command line or npm configuration
gyp ERR! find Python Python is not set from environment variable PYTHON
gyp ERR! find Python checking if "python3" can be used
gyp ERR! find Python - executable path is "/usr/bin/python3"
gyp ERR! find Python - version is "3.5.3"
gyp ERR! find Python - version is 3.5.3 - should be >=3.6.0
gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
gyp ERR! find Python checking if "python" can be used
gyp ERR! find Python - executable path is "/usr/bin/python"
gyp ERR! find Python - version is "2.7.13"
gyp ERR! find Python - version is 2.7.13 - should be >=3.6.0
gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
gyp ERR! find Python
gyp ERR! find Python **********************************************************
gyp ERR! find Python You need to install the latest version of Python.
gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
gyp ERR! find Python you can try one of the following options:
gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable"
gyp ERR! find Python (accepted by both node-gyp and npm)
gyp ERR! find Python - Set the environment variable PYTHON
gyp ERR! find Python - Set the npm configuration variable python:
gyp ERR! find Python npm config set python "/path/to/pythonexecutable"
gyp ERR! find Python For more information consult the documentation at:
gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
gyp ERR! find Python **********************************************************
gyp ERR! find Python
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Python installation to use
gyp ERR! stack at PythonFinder.fail (/home/lunetiu/api/node_modules/node-gyp/lib/find-python.js:330:47)
gyp ERR! stack at PythonFinder.runChecks (/home/lunetiu/api/node_modules/node-gyp/lib/find-python.js:159:21)
gyp ERR! stack at PythonFinder. (/home/lunetiu/api/node_modules/node-gyp/lib/find-python.js:266:16)
gyp ERR! stack at PythonFinder.execFileCallback (/home/lunetiu/api/node_modules/node-gyp/lib/find-python.js:297:7)
gyp ERR! stack at ChildProcess.exithandler (child_process.js:374:7)
gyp ERR! stack at ChildProcess.emit (events.js:400:28)
gyp ERR! stack at maybeClose (internal/child_process.js:1058:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:293:5)
gyp ERR! System Linux 4.14.253-ovh-vps-grsec-zfs-classid
gyp ERR! command "/usr/local/nodejs14/bin/node" "/home/lunetiu/api/node_modules/node-gyp/bin/node-gyp.js" "configure" "–directory=./node_modules/argon2" "–module=/home/lunetiu/api/node_modules/argon2/lib/binding/napi-v3/argon2.node" "–module_name=argon2" "–module_path=/home/lunetiu/api/node_modules/argon2/lib/binding/napi-v3" "–napi_version=8" "–node_abi_napi=napi" "–napi_build_version=3" "–node_napi_label=napi-v3"
gyp ERR! cwd /home/lunetiu/api/node_modules/argon2
gyp ERR! node -v v14.19.0
gyp ERR! node-gyp -v v9.0.0
gyp ERR! not ok
—
Au vue de l'erreur, il faut un python 3.6.
(gyp ERR! find Python - version is 2.7.13 - should be >=3.6.0
gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED)
J'aurai besoin d'une réponse rapide afin de résilier cet hébergement s'il n'est pas fonctionnel.
PI :
rétrograder à la version 0.28.2 : npm-node14 i argon2@0.28.2
puis rebuild : npm-node14 rebuild argon2@0.28.2 --build-from-source