Bundler 找不到 gem 的兼容版本 [英] Bundler could not find compatible versions for gem
本文介绍了Bundler 找不到 gem 的兼容版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在我的 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 找不到 gem 的兼容版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文