![](/img/trans.png)
[英]Why cannot run bower update command in Package Manager Console
[英]Cannot run Bower as Root, where is Bower Configuration file in Debian?
下午好,
我试图在现有项目上运行“ 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
但是,我找不到需要更改此选项的文件!!
我在Debian7的哪里可以找到这个文件? 或者同样,我可以在“ bower install”命令的某处输入此选项吗???
我不能以用户身份运行,因为该项目需要root才能进行其他所有操作。 谢谢,
只需添加标志:
sudo bower install --allow-root
在您的项目中创建一个.bowerrc文件,然后添加allow_root: true
选项。 在这里检查
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.