Bundler使用旧版本 [英] Bundler using old version
问题描述
我正在使用Bundler来处理我的Rails应用程序。当我列出已安装的捆绑软件宝石时,它列出 1.4.0.pre.1
和 1.3.15
并运行 bundler -v
产生 1.4.0.pre.1
(这是我想要的)。
然而,当我尝试运行我的应用程序时,它说当前捆绑器版本是 1.0.15
。这个版本不是作为宝石安装的,我不知道如何删除它( gem uninstall bundler -v 1.0.15
不能工作,因为这个版本没有安装为宝石)。
我试过更新和安装新版本,但没有任何工作。请帮忙,我被困了好几个小时。谢谢。
$ which -a bundle这会告诉你所有实例的位置在您的计算机上找到捆绑软件。
从那里,您应该能够找到违规版本的捆绑软件并将其卸载。
I am using Bundler for my Rails application. When I list installed bundler gems it lists 1.4.0.pre.1
and 1.3.15
and running bundler -v
yields 1.4.0.pre.1
(which is what i want).
However, when I try to run my application it says current bundler version is 1.0.15
. This version is not installed as a gem and I cannot figure out how to remove it (gem uninstall bundler -v 1.0.15
wont work since this version is not installed as a gem).
I have tried updating and installing new versions, but nothing is working. Please help, I've been stuck for hours. Thank you.
Try running:
$ which -a bundle
This will tell you the location of all the instances of bundler found on your computer.
From there, you should be able to locate the offending version of bundler and uninstall it.
这篇关于Bundler使用旧版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!