How to I undo the vendor/gems bundle install

主宰稳场 提交于 2019-12-09 04:37:25

问题


I ran bundle install vendor/gems and all the gems got saved to the gems directory as expected but when i delete them like

rm -rf vendor/gems

rails s
 Could not find rake-0.9.2.2 in any of the sources
 Run `bundle install` to install missing gems.

I need to run bundle install again and all the gems install to the vendor/gems again. Is there a way to get this behavior to stop and just install as I used to using my .rvmrc file and not package the gems in the vendor/gems directory


回答1:


There is a hidden directory called .bundle in the root of your directory. Remove that, then run bundle again.



来源:https://stackoverflow.com/questions/9471970/how-to-i-undo-the-vendor-gems-bundle-install

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