getting error while installing ElectronJS,
Error:
Error: EACCES: permission denied, mkdir \'/usr/lib/node_modules/electron/.electron\'
Solved my issue by appending --unsafe-perm=true
command:
sudo npm install -g electron --unsafe-perm=true
unsafe-perm
Default: false if running as root, true otherwise
Type: Boolean Set to true to suppress the UID/GID switching when running package scripts. If set explicitly to false, then installing as a non-root user will fail.