Rails:您的用户帐户不允许安装到系统 RubyGems [英] Rails: Your user account isn't allowed to install to the system RubyGems
问题描述
我正在运行命令
捆绑安装
在项目文件夹中.在某些项目文件夹中,它会产生错误,而在其他项目文件夹中,它不会产生错误.错误是:
<块引用>您的用户帐户不允许安装到系统 RubyGems
我知道这可以通过遵循推荐的建议来解决:
<块引用>bundle install --path vendor/bundle
我的问题是为什么行为不一致?
就我而言,我解决了按照错误消息提示的操作:
<前>您的用户帐户不允许安装到系统 RubyGems.您可以取消此安装并运行:捆绑安装 --path 供应商/捆绑将 gems 安装到 ./vendor/bundle/所以,而不是:
捆绑安装
我跑了:
bundle install --path vendor/bundle
这是这个的解决方案家伙.
该解决方案的缺点是它在当前文件夹内创建了一个 vendor
文件夹,如果要通过 Git 分发应用程序,可以将其添加到 .gitignore
.
I am running the command
bundle install
in a project folder. In some project folders it will produce an error and in other projects folders it will not produce an error. The error is:
Your user account isn't allowed to install to the system RubyGems
I know this can be fixed by following the recommended advice:
bundle install --path vendor/bundle
My question is why is the behavior inconsistent?
In my case, I solved doing just what the error message suggests:
Your user account isn't allowed to install to the system RubyGems. You can cancel this installation and run: bundle install --path vendor/bundle to install the gems into ./vendor/bundle/
So, instead of:
bundle install
I ran:
bundle install --path vendor/bundle
That was the solution for this guy.
The downside of that solution is that it creates a vendor
folder inside the current folder, which can be added to .gitignore
if it is to distribute the application through Git.
这篇关于Rails:您的用户帐户不允许安装到系统 RubyGems的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!