Bundler找不到兼容版本的宝石

Bundler找不到兼容版本的宝石

本文介绍了Bundler找不到兼容版本的宝石的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Gemfile中添加了一个gem'koala',并且在运行'bundle install'命令时似乎抛出了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?

推荐答案

删除 Gemfile.lock 的内容,并再次运行 bundle install 。这一直在为我工作。

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

这篇关于Bundler找不到兼容版本的宝石的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 07:34