Bundler could not find compatible versions for gem

hagope picture hagope · Aug 22, 2011 · Viewed 25.2k times · Source

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?

Answer

Lance Pollard picture Lance Pollard · Aug 22, 2011

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