Unable to downgrade

I am trying to install a project that I have cloned. When I do "bundle install" I get the following message:

$ 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`?

      

So, I did the following:

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

      

I am doing 'bundle install' and I have the same message:

$ 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`?

      

Seems like I can't drop the package for 1.0.0, any idea?

+6


source to share


2 answers


If you don't need multiple Bundler versions, you can uninstall the newer version:

$ gem uninstall bundler -v 1.6.2

      



You can also choose from the list of configuration versions if you have several:

$ gem uninstall bundler

      

+4


source


You will need to start a global instance (change the installed ruby ​​version if needed) -



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

      

0


source







All Articles