繁体   English   中英

ESlint 全局安装 mac root 终端报错

[英]ESlint global install mac root terminal error

我试图在运行 mojave 10.14.6 的 Mac 上全局安装 ESlint,但每次运行“npm install -g eslint”时都会出现此错误:

The operation was rejected by your operating system. npm ERR, It is likely you do not have the permissions to access this file as the current user npm ERR, npm ERR. If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator (though this is not recommended).

有没有以 root/admin 权限运行终端?

您是否尝试过sudo npm install -g eslint并输入密码?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM