How to reset bundler path

帅比萌擦擦* 提交于 2019-12-22 10:13:56

问题


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.

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

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

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.


回答1:


you need to rm -rf .bundle within your app



来源:https://stackoverflow.com/questions/9952603/how-to-reset-bundler-path

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!