下午好,
我正在尝试运行" bower install"命令在现有项目上,但我收到错误
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.
通过阅读以下帖子,我了解到我需要将选项allow_root: false
更改为true
Run bower from root user, it's possible? How?
但是,我找不到需要更改此选项的文件!!
我在哪里可以在Debian7中找到此文件?或者同样,我可以在" bower install"中的某处输入此选项。命令???
我不能以用户身份运行它,因为项目需要root用于其他所有内容。 谢谢,
答案 0 :(得分:1)
只需添加标记:
sudo bower install --allow-root
答案 1 :(得分:0)
在项目中创建.bowerrc文件,然后添加allow_root: true
选项。 Check here