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

后端 未结 8 1278
执念已碎
执念已碎 2021-01-29 23:59

I\'m trying to install ESLint with npm by going:

npm install -g eslint

However I get the following error:

Deans-Air:~ deangibso         


        
8条回答
  •  轮回少年
    2021-01-30 00:57

    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.

提交回复
热议问题