gyp WARN EACCES user "nobody" does not have permission to access the dev dir

安装包的时候提示如下:

gyp WARN EACCES user "nobody" does not have permission to access the dev dir

或者

gyp WARN EACCES user "root" does not have permission to access the dev dir


解决方法:

npm install xxxx -g --unsafe-perm 


有时候可以先执行:

npm cache clean --force


参考:

https://javascript.net.cn/article?id=657

声明:本站所有文章和图片,如无特殊说明,均为原创发布,转载请注明出处。
随机推荐
HTML input range 数值范围选择器
CSS 图片缩小出现锯齿
WordPress 增强编辑器功能
JavaScript 数组
Land APP 小程序
CRSF 跨站脚本攻击已死,使用 Same-Site Cookies 来防范 CSRF
WordPress用户的user_login, user_nicename, display_name 和 nickname有什么区别
JavaScript 触摸事件