当前位置 : 主页 > 网页制作 > HTTP/TCP >

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

来源:互联网 收集:自由互联 发布时间:2021-06-16
https://stackoverflow.com/questions/35954725/error-eacces-permission-denied-when-trying-to-install-eslint-using-npm ----------------------------------------------- Use --unsafe-perm=true and --allow-root flags with npm install like below:-

https://stackoverflow.com/questions/35954725/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.

网友评论