Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bundler could not find compatible versions for gem

I've added a gem 'koala' to my Gemfile and seems to have thrown gem versions out of whack when I run the 'bundle install' command:

Bundler could not find compatible versions for gem "faraday": In snapshot (Gemfile.lock): faraday (0.6.1)  In Gemfile: koala (~> 1.2.0beta1) depends on   faraday (~> 0.7.4)  Running `bundle update` will rebuild your snapshot from scratch, using only the gems in your Gemfile, which may resolve the conflict. 

How can I resolve this conflict?

like image 846
hagope Avatar asked Aug 22 '11 08:08

hagope


People also ask

Where does bundler install gems?

Show activity on this post. I know that when using gem install , the gem will be stored under /home/username/. rvm/gems/, under which gemset the gem was installed.

What is gem install bundler?

gem install bundler installs a gem(library) that will help you to manage your project dependencies. Then you have a project that contains a file called Gemfile , when you cd into that directory and enter bundle install it will install all gems needed for that project.


1 Answers

Delete the contents of Gemfile.lock, and run bundle install again. That's been working for me.

like image 158
Lance Avatar answered Sep 16 '22 14:09

Lance