I\'m trying to install ESLint with npm by going:
npm install -g eslint
However I get the following error:
Deans-Air:~ deangibso
you can login as root using sudo su
. First run the command sudo su
on your terminal, then give your login password. Finally execute your expected command npm install -g eslint
. It works for me.
npm install -g @ionic/cli native-run cordova-res
sudo apt update
sudo apt upgrade -y
I had read the already present solutions but thought there was something else, UNSAFE isn't a safe keyword, lol. While running the command with the --unsafe-perm=true, I noticed it downloading what seemed to be update binaries. So, I updated and tried again.