getting error while installing ElectronJS,
Error:
Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/electron/.electron'
command tried,
sudo npm install -g electron
sudo npm install -g electron-prebuilt
how to resolve this permission issue?
It looks like you're running into permission issues. If you are installing npm-packages then it might possible that you are getting an EACCES error when trying to install a package globally. This means you do not have permission to write to the directories npm uses to store global packages and commands.
You can try with the following command
sudo npm install -g electron --unsafe-perm=true --allow-root
i hope it will be work
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With