Community post
Electron installation failure on Linux Mint 18
I'm trying to install the latest stable build on my Linux Mint distro. I'm getting the following output and haven't figured out what's wrong. Note: this is just me trying to install it according to the instruction given in documentation.
This is on a fresh install of nodejs 9 with npm. The Linux Mint install is also fresh (only been using it 2 days now).
$ npm i -D electron@latest
npm WARN checkPermissions Missing write access to /home/nolan/node_modules
npm WARN enoent ENOENT: no such file or directory, open '/home/nolan/package.json'
npm WARN nolan No description
npm WARN nolan No repository field.
npm WARN nolan No README data
npm WARN nolan No license field.
npm ERR! path /home/nolan/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/home/nolan/node_modules'
npm ERR! { Error: EACCES: permission denied, access '/home/nolan/node_modules'
npm ERR! stack: 'Error: EACCES: permission denied, access \'/home/nolan/node_modules\'',
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/home/nolan/node_modules' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/nolan/.npm/_logs/2018-04-06T12_29_36_255Z-debug.log
Then when running as root as it says to try doing I get this output:
$ sudo npm i -D electron@latest
> [email protected] postinstall /home/nolan/node_modules/electron
> node install.js
/home/nolan/node_modules/electron/install.js:47
throw err
^
Error: EACCES: permission denied, mkdir '/home/nolan/node_modules/electron/electron-tmp-download-17793-1523017991786'
npm WARN enoent ENOENT: no such file or directory, open '/home/nolan/package.json'
npm WARN nolan No description
npm WARN nolan No repository field.
npm WARN nolan No README data
npm WARN nolan No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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/nolan/.npm/_logs/2018-04-06T12_33_12_101Z-debug.log
I've tried looking online for a solution but have yet to find one. Any suggestions or ideas what is going on here
Github Link: https://github.com/electron/electron/issues/12553
Posted on Utopian.io - Rewarding Open Source Contributors
Replies (7)
Your Post Has Been Featured on @Resteemable!
Feature any Steemit post using resteemit.com!
How It Works:
1. Take Any Steemit URL
2. Erase
https://3. Type
reGet Featured Instantly & Featured Posts are voted every 2.4hrs
Join the Curation Team Here | Vote Resteemable for Witness
Your contribution cannot be approved because it does not follow the Utopian Rules.
Hello,
I read through your Github Issue which is linked to the contribution.
I would like to highlight as there is a comment on the issue you made -
After reading through this comment I checked your log back out and seen for the first time you were installing electron in your home directory which got clear from the first line
which shows you were trying to install Electron as a dev dependency in your home folder it first gave
permission deniederror which is by default a error if you execute a command of accessing home without root permissions then after that you tried it out with sudo but as it cannot be installed as a dev dependency in home folder it gives you another error.I would recommend you to either try to install in globally by
-gflag or try to install it as a dev dependency in a project folder.Hence it is not a bug I will hide it from Utopian.
For further help and assistance regarding electron you may go to thier community or thier slack channel.
Thanks!
You can contact us on Discord.
[utopian-moderator]
Installing globally failed too. Thought i commented that in the replies. Ive managed to get electron running on my other non debian based distro with no problems.
Ive also managed to use electron forge no problem on this OS used in the bug report. But i have not been able to get it to install per their directions. Even when trying to install globally so something must be going on?
It cannot be approved as a bug sadly
But for help I will recommend you to try to get assistance from thier Slack channel which is the best way to get it working as they have already mentioned it cannot be considered as a bug.
There are several errors due to different conditions while installing electron I will advise you maybe google out about it or try out once in thier slack.
Just for your assurance I tried out installing electron in my Debian based Ubuntu GNOME 17.10
and was successful in installing it
I would recommend you to try this command once
sudo npm install -g electron --unsafe-perm=true --allow-rootI have attached a screenshot below -
I hope this would be helpful to you
Node version - 9.11.1(Latest)
Congratulations @noly! You have completed some achievement on Steemit and have been rewarded with new badge(s) :
Click on any badge to view your Board of Honor.
For more information about SteemitBoard, click here
If you no longer want to receive notifications, reply to this comment with the word
STOPCongratulations @noly! You have received a personal award!
Click on the badge to view your Board of Honor.
Congratulations @noly! You received a personal award!
You can view your badges on your Steem Board and compare to others on the Steem Ranking