如何重置捆绑器路径 [英] How to reset bundler path

查看:82
本文介绍了如何重置捆绑器路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我设法打破捆扎机!我在一个Rails应用中四处乱逛,做了类似
捆绑安装字符串的操作。现在,我所有的gem都被安装到应用程序中名为 string的文件夹中。

I've managed to break bundler! I was messing around in a Rails app and I did something like bundle install string. Now all my gems are being installed into a folder called "string" within the app.

如何重置bundler以将默认路径用于rvm gemset?

How do I reset bundler to use the default paths for my rvm gemsets?

这里的另一篇文章建议使用 bundle install --system ,但这是否可以确保将gem安装到gemset中?

Another post here suggested using bundle install --system, but will this ensure that gems are installed into gemsets?

我检查了 rvm信息,并且GEM_HOME和GEM_PATH似乎指向正确的rvm / gemset目录。因此,我对为什么未将宝石安装到正确的位置感到困惑。

I have checked rvm info and the GEM_HOME and GEM_PATH appear to point to the correct rvm/ gemset directories. So I'm confused as to why gems are not being installed to the correct location.

抱歉,如果这是一个基本问题,我仍在尝试了解所有这可行。谢谢您的指导。

Sorry if this is a basic question, I'm still trying to understand how all this works. Thanks for any pointers.

推荐答案

您需要 rm -rf .bundle 在您的应用内

这篇关于如何重置捆绑器路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆