0

I was unable to install electron in my system (was getting postinstall error). So I thought let me uninstall and reinstall node and npm. I tried this gist and couldnt install npm - that erred out. So I went to node js website and downloaded versions: node 8.9.0 & npm 5.6.0. While I now have node and npm back, no npm installation works without a sudo. Funny thing, I get the same electron installation error. I tried fixing the sudo problem using this link but no help. Please advise!

Screenshot of the npm error:

enter image description here

Screenshot of the electron installation error: enter image description here

theusual
  • 741
  • 2
  • 11
  • 24
  • Make sure you are running the npm install where you have read and write access to the folder then `sudo` is not required – Mahesh G Jan 10 '18 at 15:48
  • Go to your home folder `cd ~` and tell us the permissions of the npm files in your home directory `ls -la | grep npm`. – zero298 Jan 10 '18 at 16:16
  • @zero298 .npm has permission drwxrwxrwx . .npmrc has -rwxrwxrwx – theusual Jan 11 '18 at 03:03

0 Answers0