To fix Error: EACCES: permission denied when trying to install ESLint using npm, we set a few options.
For instance, we run
sudo npm install -g eslint --unsafe-perm=true --allow-root
to install eslint
with npm install
with --unsafe-perm=true
and --allow-root
to install as root and run with root permissions.