Categories
JavaScript Answers

How to fix Error: EACCES: permission denied when trying to install ESLint using npm?

Spread the love

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.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *