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

后端 未结 8 1173
执念已碎
执念已碎 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:36

    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.

提交回复
热议问题