Closed dan-mi-sun closed 6 years ago
@dan-mi-sun Can you try sudo npm install -g electron ?
Argh. I do think it is a privilidges issue as I get a similar set of errors as here:
Likewise I'm getting a similar error on Ubuntu GNOME xenial
[9:51:46] kyphae:poc_keybase_sign git:(master*) $ sudo npm install -g electron
/usr/bin/electron -> /usr/lib/node_modules/electron/cli.js
> electron@1.7.9 postinstall /usr/lib/node_modules/electron
> node install.js
/usr/lib/node_modules/electron/install.js:48
throw err
^
Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/electron/dist'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! electron@1.7.9 postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the electron@1.7.9 postinstall 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/kyphae/.npm/_logs/2017-11-27T09_51_55_878Z-debug.log
Ok for now we can launch the PoC with ./node_modules/.bin/electron .
I will update the npm start behaviour and README.
Ok you can now start the app with npm start
no need for a global electron install. Sorry for this.
Description
When running the software I get an error.
System
I am running:
$ uname -a Linux host 3.16.0-4-amd64 #1 SMP Debian 3.16.43-2+deb8u5 (2017-09-19) x86_64 GNU/Linux
$ lsb_release -cs jessie
Steps to reproduce
npm start
aselectron .
does not work ( zsh: command not found: electron)Observed behaviour
We get an error message saying :
Expected behaviour:
I'm not sure what should have happened instead... perhaps electron to launch?