叛道 Pandao
Web Designer & Developer
Xiamen, China
关注我
开源中国
花瓣
豆瓣
首页
文章笔记
收集
作品
关于我
TOP
[笔记] bower ESUDO Cannot be run with sudo 的解决办法
发布时间: 2013-12-18
Bower
前端开发
解决方法
#### 问题 使用 `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
TOP