Installation Kresus armbian problématique

Bonsoir,
Nouveau sur le forum ! J’essaie d’installer Kresus sur un Odroid-HC1 sous armbian. J’ai un problème à l’installation via npm avec dans le terminal ceci :

node-expat@2.3.18 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 4.14.195-odroidxu4
gyp ERR! command « /usr/bin/node » « /usr/bin/node-gyp » « rebuild »
gyp ERR! cwd /usr/local/lib/node_modules/kresus/node_modules/node-expat
gyp ERR! node -v v10.21.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-expat@2.3.18 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-expat@2.3.18 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Je n’ai pas trouvé de solution pour l’instant. J’ai installé npm (6.14.6) et nodejs via apt.
Des suggestions ?
Merci
Laurent

Salut !

Vu le message avec « permission denied » je suspecte un souci de droit.
Comment tentes-tu l’installation ? Je conseillerais soit d’utiliser une installation avec préfixe (https://kresus.org/install-npm.html#prefixe-installation-non-globale) soit de passer le paramètre --unsafe-perm comme dit ici : https://github.com/nodejs/node-gyp/issues/1547#issuecomment-530250729.

Bonne chance

Bonsoir,
J’ai tenté l’installation sous l’utilisateur courant avec sudo.
Je vais réessayer l’installation avec tes conseils !
Merci
Laurent

La compilation a abouti avec le préfixe --unsafe-perm :blush: Je n’ai plus qu’à configurer mon reverse proxy pour le démarrer correctement !
Merci
Laurent

1 « J'aime »

Content de l’entendre ! De rien