Search code examples
ruby-on-rails-3version-controlrubygemsbundlergemfile

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?


Solution

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