无法降级捆绑包

时间:2014-08-28 15:45:31

标签: ruby-on-rails rvm bundler

我尝试安装我克隆的项目。当我做'捆绑安装'我有以下消息:

$ bundle install
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
rails (= 3.0.0) ruby depends on
bundler (~> 1.0.0) ruby

Current Bundler version:
bundler (1.6.2)

This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running `gem install bundler`?

所以我做了以下事情:

gem uninstall bundler
gem install bundler --version '1.0.0'
Successfully installed bundler-1.0.0
1 gem installed

我做'捆绑安装',我一直有同样的信息:

$ bundle install
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
rails (= 3.0.0) ruby depends on
bundler (~> 1.0.0) ruby

Current Bundler version:
bundler (1.6.2)

This Gemfile requires a different version of Bundler.

Perhaps you need to update Bundler by running `gem install bundler`?

似乎我无法将捆绑商降级到' 1.0.0'版本,任何想法?

2 个答案:

答案 0 :(得分:4)

如果您不需要多个版本的Bundler,则可以卸载较新版本:

$ gem uninstall bundler -v 1.6.2

如果您有多个版本,也可以从捆绑包版本列表中进行选择:

$ gem uninstall bundler

答案 1 :(得分:0)

您需要点击全局实例(根据需要更改已安装的ruby版本)-

$ gem uninstall -i /Users/<user>/.rvm/gems/ruby-2.3.8@global bundler