[英]Error: EACCES: permission denied doing bower install
I do bower install css-circle-menu
我做
bower install css-circle-menu
and I got this error : 我得到这个错误:
/usr/local/lib/node_modules/bower/lib/node_modules/configstore/index.js:54
throw err;
^
Error: EACCES: permission denied, open '/Users/james/.config/configstore/bower-github.json'
Tried sudo bower install css-circle-menu, it doesn't work too. 尝试了sudo bower安装css-circle-menu,它也不起作用。 Also tried to install bower global again, got the same error.
也尝试再次安装bower global,出现相同的错误。
The problem is caused by insufficient user permissions. 该问题是由用户权限不足引起的。 You can avoid the issue invoking a
sudo
command but I suggest you to try to fixing your .config
folder permissions using: 您可以避免调用
sudo
命令的问题,但是我建议您尝试使用以下方法来修复.config
文件夹权限:
sudo chown -R $USER:$GROUP ~/.config
Bower and NPM commands shouldn't be run with sudo. Bower和NPM命令不应与sudo一起运行。
试试这个: sudo bower install css-circle-menu --allow-root
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.