本文介绍了如何撤消供应商/宝石捆绑安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我运行捆绑安装供应商/宝石
,所有宝石都按预期方式保存到gems目录,但是当我像
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.
我需要再次运行捆绑安装,并将所有gems安装到供应商/ gems
。有没有一种方法可以停止这种行为,并按照我以前使用.rvmrc文件的方式进行安装,而不是将gems打包在vendor / 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
推荐答案
目录的根目录中有一个名为 .bundle
的隐藏目录。删除它,然后再次运行捆绑软件。
There is a hidden directory called .bundle
in the root of your directory. Remove that, then run bundle again.
这篇关于如何撤消供应商/宝石捆绑安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!