MomsFriendlyDevCo / Init

A collection of setup scripts to deploy a Linux environment
MIT License
1 stars 1 forks source link

020-Node Permissions issue with installing electron - > devtools #4

Open Jaczel opened 6 years ago

Jaczel commented 6 years ago

Installing devtools on a fresh machine produces the following error: Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/electron/.electron' npm ERR! code ELIFECYCLE The following forum post suggests installing with unsafe permissions: npm install -g electron --unsafe-perm=true --allow-root This is not ideal but looks necessary until the electron maintainer has gotten their stuff together.

hash-bang commented 6 years ago

Devtools is a front-end GUI application. You can remove it from the usual Node packages. I'm surprised I left it in there.