Problèmes et questions sur les environnements graphiques et les applications.
Répondre

EACCESS problème avec arctis-battery-percentage

#1Messageil y a 4 ans

Bonsoir,

J'ai voulu tester il y 2 jours un logiciel écrit en NodeJS (donc du javascript) dont le but unique est de fournir le niveau de batterie du casque Steelseries Artic Silver 7 Black.

Cependant, lors de la "compilation"/ installation avec npm (l'outil de gestion de NodeJS) j'ai eu des erreurs.
Après un passage en root même erreur.

Je rapporte le bug à son créateur qui me confirme que c'est bien un problème de permission. Je suis d'accord avec lui mais j'utilise déjà des applications tel que Boosnote et Notable sans aucun problème. :roll:

La procédure décrite ici : Eacces permission

$npm i -g arctis-battery-percentage
npm WARN checkPermissions Missing write access to /usr/lib/node_modules
npm ERR! code EACCES
npm ERR! syscall access
npm ERR! path /usr/lib/node_modules
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, access '/usr/lib/node_modules'
npm ERR!  [Error: EACCES: permission denied, access '/usr/lib/node_modules'] {
npm ERR!   stack: "Error: EACCES: permission denied, access '/usr/lib/node_modules'",
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path: '/usr/lib/node_modules'
npm ERR! }
npm ERR! 
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR! 
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/olivier/.npm/_logs/2019-10-30T16_41_10_091Z-debug.log
$ sudo npm i -g arctis-battery-percentage
 
/usr/bin/arctis-battery -> /usr/lib/node_modules/arctis-battery-percentage/percentage.js

> node-hid@0.7.9 install /usr/lib/node_modules/arctis-battery-percentage/node_modules/node-hid
> prebuild-install || node-gyp rebuild

prebuild-install WARN install EACCES: permission denied, access '/root/.npm'
gyp WARN EACCES current user ("nobody") does not have permission to access the dev dir "/root/.cache/node-gyp/12.13.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/arctis-battery-percentage/node_modules/node-hid/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error 
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/arctis-battery-percentage/node_modules/node-hid/.node-gyp'
gyp ERR! System Linux 5.3.7-2-MANJARO
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/lib/node_modules/arctis-battery-percentage/node_modules/node-hid
gyp ERR! node -v v12.13.0
gyp ERR! node-gyp -v v6.0.0
gyp ERR! not ok 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-hid@0.7.9 install: `prebuild-install || node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the node-hid@0.7.9 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/2019-10-30T16_41_40_858Z-debug.log
Le test de la branche Headless modifiée pour Linux m'a donné exactement la même erreur. :saispas:

Qu'en pensez-vous ?
Répondre