#1 Le 20/11/2020, à 17:52
- gregoire0
problème pour installé electron js
bonjour,
J'essaye d'installé electron js mais j'ai des messages d'erreur alors que je suis en mode root grâce à la commande su root :
Downloading electron-v11.0.2-linux-x64.zip: [===========] 100% ETA: 0.0 seconds
Error: EACCES: permission denied, stat '/root/.cache/electron/httpsgithub.comelectronelectronreleasesdownloadv11.0.2SHASUMS256.txt/SHASUMS256.txt'
npm ERR! Linux 4.15.0-20-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "electron" "-g"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! electron@11.0.2 postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the electron@11.0.2 postinstall 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 electron 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 electron
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls electron
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/gregoire/npm-debug.log
Dernière modification par gregoire0 (Le 20/11/2020, à 17:54)
Ne faite pas attention au faute je suis dyslexique.
«Il était une fois un enfant de trois ans qui n’arrivait pas à apprendre à parler. À huit ans, il ne pouvait toujours pas lire. Ses enseignants pensaient qu’il était déficient. Il ne l’était pas. Albert Einstein avait des troubles d’apprentissage.»
Hors ligne
#2 Le 20/11/2020, à 21:32
- abelthorne
Re : problème pour installé electron js
Essaie sans passer sur le compte root. Tu n'es pas censé l'utiliser sur Ubuntu, il y a sudo pour obtenir les droits admin avec ton compte habituel.
Hors ligne
#3 Le 25/02/2021, à 13:54
- gregoire0
Re : problème pour installé electron js
J'ai essayer avec la dernier version de ubuntu aussi en sudo j'arrive toujours pas à installer electron alors que par le passé il y à environ 3 ans j'avé juste a suivre les instruction de se site a l’époque sa marché bien :
https://zestedesavoir.com/tutoriels/996 … -electron/
gregoire1@gregoire1-H310M-S2H-2-0:~$ sudo npm install electron -g
[sudo] Mot de passe de gregoire1 :
/usr/local/bin/electron -> /usr/local/lib/node_modules/electron/cli.js
> electron@11.3.0 postinstall /usr/local/lib/node_modules/electron
> node install.js
gregoire1@gregoire1-H310M-S2H-2-0:~$ electron --version
/usr/local/lib/node_modules/electron/index.js:14
throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again')
^
Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
at getElectronPath (/usr/local/lib/node_modules/electron/index.js:14:11)
at Object.<anonymous> (/usr/local/lib/node_modules/electron/index.js:18:18)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.<anonymous> (/usr/local/lib/node_modules/electron/cli.js:3:16)
gregoire1@gregoire1-H310M-S2H-2-0:~$
Dernière modification par gregoire0 (Le 25/02/2021, à 13:58)
Ne faite pas attention au faute je suis dyslexique.
«Il était une fois un enfant de trois ans qui n’arrivait pas à apprendre à parler. À huit ans, il ne pouvait toujours pas lire. Ses enseignants pensaient qu’il était déficient. Il ne l’était pas. Albert Einstein avait des troubles d’apprentissage.»
Hors ligne