Error: EACCES: permission denied when trying to install ESLint using npm
-----------------------------------------------
Use --unsafe-perm=true
and --allow-root
flags with npm
install like below:-
sudo npm install -g eslint --unsafe-perm=true --allow-root
it worked like charm for me.