Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't downgrade bundler

I try to install a project I cloned. When I do 'bundle install' I have 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 do 'bundle install', and I keep having 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`?

It seems that I cannot downgrade bundler to the '1.0.0' version, any idea?

like image 670
jck Avatar asked Aug 28 '14 15:08

jck


People also ask

How do I completely remove bundler?

To uninstall Bundler, run gem uninstall bundler . See bundler.io for the full documentation.

How do I install a specific version of a bundler gem?

Install BundlerSelect Tools | Bundler | Install Bundler from the main menu. Press Ctrl twice and execute the gem install bundler command in the invoked popup. Open the RubyMine terminal emulator and execute the gem install bundler command.


2 Answers

If you do not need multiple versions of Bundler, you can uninstall the newer version:

$ gem uninstall bundler -v 1.6.2

You can also choose from a list of bundler versions if you have more than one:

$ gem uninstall bundler
like image 72
sealocal Avatar answered Oct 14 '22 09:10

sealocal


You'll need to hit the global instance (alter installed ruby version as needed) --

$ gem uninstall -i /Users/<user>/.rvm/gems/ruby-2.3.8@global bundler
like image 36
beauXjames Avatar answered Oct 14 '22 08:10

beauXjames