Electron installation failure on Linux Mint 18

in #utopian-io6 years ago (edited)

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

Sort:  
Loading...

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 re
Get Featured Instantly & Featured Posts are voted every 2.4hrs
Join the Curation Team Here | Vote Resteemable for Witness

Congratulations @noly! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of upvotes

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 STOP

You can upvote this notification to to help all Steemit users. Learn why here!

Congratulations @noly! You have received a personal award!

1 Year on Steemit
Click on the badge to view your Board of Honor.

You can upvote this notification to help all Steemit users. Learn why here!

Congratulations @noly! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

You can upvote this notification to help all Steem users. Learn how here!

Coin Marketplace

STEEM 0.20
TRX 0.14
JST 0.030
BTC 68154.08
ETH 3274.07
USDT 1.00
SBD 2.66