首页 » 知识分享 » bower ESUDO Cannot be run with sudo 的解决办法

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

关键词bower, 物联网

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

问题

使用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
支持
评论列表 ()
  • 没有内容