Bonjour,
Finalement, je vous fais un petit retour. J’ai tenté une installation local avec npm après avoir installé pip et woob. Par contre je n’ai pas eu de succès, je vous colle mes logs ici :
sudo npm install --production -g kresus
/usr/local/bin/kresus -> /usr/local/lib/node_modules/kresus/bin/kresus.js
npm WARN lifecycle The node binary used for scripts is /usr/bin/node but npm is using /snap/node/4812/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
> node-expat@2.4.0 install /usr/local/lib/node_modules/kresus/node_modules/node-expat
> node-gyp rebuild
gyp ERR! clean error
gyp ERR! stack Error: EACCES: permission denied, rmdir 'build'
gyp ERR! System Linux 5.11.16-051116-generic
gyp ERR! command "/usr/bin/node" "/snap/node/4812/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/kresus/node_modules/node-expat
gyp ERR! node -v v10.19.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-expat@2.4.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-expat@2.4.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-06-17T09_27_41_532Z-debug.log
J’ai tenté une installation dans un dossier à part.
npm install --prefix /home/jean/kresus kresus
npm WARN lifecycle The node binary used for scripts is /usr/bin/node but npm is using /snap/node/4812/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
> node-expat@2.4.0 install /home/jean/kresus/node_modules/kresus/node_modules/node-expat
> node-gyp rebuild
make: Entering directory '/home/jean/kresus/node_modules/kresus/node_modules/node-expat/build'
CC(target) Release/obj.target/expat/deps/libexpat/lib/xmlparse.o
../deps/libexpat/lib/xmlparse.c:11:10: fatal error: string.h: No such file or directory
11 | #include <string.h> /* memset(), memcpy() */
| ^~~~~~~~~~
compilation terminated.
make: *** [deps/libexpat/expat.target.mk:112: Release/obj.target/expat/deps/libexpat/lib/xmlparse.o] Error 1
make: Leaving directory '/home/jean/kresus/node_modules/kresus/node_modules/node-expat/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/snap/node/4812/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:198:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 5.11.16-051116-generic
gyp ERR! command "/usr/bin/node" "/snap/node/4812/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/jean/kresus/node_modules/kresus/node_modules/node-expat
gyp ERR! node -v v10.19.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open '/home/jean/kresus/package.json'
npm WARN kresus No description
npm WARN kresus No repository field.
npm WARN kresus No README data
npm WARN kresus No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-expat@2.4.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-expat@2.4.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/jean/.npm/_logs/2021-06-17T09_29_08_654Z-debug.log
N’ayant pas le temps de comprendre de quoi il en retourne, j’ai préféré installer Virtualbox avec l’image Yunohost. J’ai pu installer facilement Kresus avec la méthode Yunohost.
Jean