gpt4 book ai didi

ruby-on-rails - Bower:无效选项:--allow-root

转载 作者:太空狗 更新时间:2023-10-29 11:43:17 27 4
gpt4 key购买 nike

我在 ubuntu 14.04LTS 上遇到这个问题:

当我执行 rake bower:install:dev 时,我得到:

Error: EACCES, permission denied 'home/MyName/.config/configstore/bower-github.yml' You don't have access to this file.

当我执行 sudo rake bower:install:dev 时,我得到:

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

当我执行 sudo rake bower:install:dev --allow-root 时,我得到:

invalid option: --allow-root

我该如何解决这个问题?

最佳答案

我通过在我的应用程序的根目录中添加包含以下内容的 .bowerrc 文件解决了这个问题:

{ "allow_root": true }

关于ruby-on-rails - Bower:无效选项:--allow-root,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33033666/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com