欢迎来到资源库(www.zyku.net)

工具资源

当前位置:首页 > 网站运营 > 工具资源 > Bower

bower ESUDO Cannot be run with sudo 的解决办法

时间:2020-04-17|栏目:工具资源|点击:|我要投稿

问题

使用 sudo 命令后或者当前用户为 root,执行 bower install 安装命令会出现错误:

bower ESUDO         Cannot be run with sudo
Additional error details:
Since bower is a user command, there is no need to execute it with superuser permissions.
If you're having permission errors when using bower without sudo, please spend a few minutes learning more about how your system should work and make any necessary repairs.
http://www.joyent.com/blog/installing-node-and-npm
https://gist.github.com/isaacs/579814
You can however run a command with sudo using --allow-root option

解决办法

只需要在执行安装命令时,加上 --allow-root 的选项:

$ bower install --allow-root

(资源库 www.zyku.net)

上一篇:word中批量修改图片大小的方法

栏    目:工具资源

下一篇:火车头采集器标签循环采集

本文标题:bower ESUDO Cannot be run with sudo 的解决办法

本文地址:https://www.zyku.net/gongju/1866.html

关于我们 | 版权申明 | 寻求合作 |

重要申明:本站所有的文章、图片、评论等内容,均由网友发表或上传并维护或收集自网络,仅供个人学习交流使用,版权归原作者所有。

如有侵犯您的版权,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。

联系QQ:95148658 | 邮箱:mb8#qq.com(#换成@)

苏ICP备2020066115号-1

本网站由提供CDN加速/云存储服务