Bundler版本问题4?
我遇到了这个骗子错误,我该如何解决。
Fetching gem metadata from https://rubygems.org/..........
Resolving dependencies...
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
rails (= 4.2.11.3) was resolved to 4.2.11.3, which depends on
bundler (>= 1.3.0, < 2.0)
Current Bundler version:
bundler (2.3.12)
Your bundle requires a different version of Bundler than the one you're running.
Install the necessary version with `gem install bundler:2.0.0.pre.3` and rerun bundler using `bundle _2.0.0.pre.3_`
GEM安装Bundler:2.0.0.pre.3
and bundle _2.0.0.pre.3 _
命令命令会做什么。他们要替换我的2.3.12
并安装2.0.0
I am getting this bundler error how do i resolve it.
Fetching gem metadata from https://rubygems.org/..........
Resolving dependencies...
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
rails (= 4.2.11.3) was resolved to 4.2.11.3, which depends on
bundler (>= 1.3.0, < 2.0)
Current Bundler version:
bundler (2.3.12)
Your bundle requires a different version of Bundler than the one you're running.
Install the necessary version with `gem install bundler:2.0.0.pre.3` and rerun bundler using `bundle _2.0.0.pre.3_`
What do gem install bundler:2.0.0.pre.3
and bundle _2.0.0.pre.3_
command gonna do. Are they gonna replace my 2.3.12
and install 2.0.0
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的宝石中可以安装多个版本的同一宝石。运行此操作:
然后运行此:
您将找到已安装的宝石的两个版本。默认情况下,它将使用最新版本运行
Bundle
,但是由于您的宝石与它不兼容,因此您可以使用其他版本的GEM运行Bundle
。为此,您需要运行:在您的情况下,它将是:
您还可以删除
bundler
GEM的其他版本,只保留一个兼容的版本。要删除特定版本,您可以执行:There can be multiple versions of the same gem installed in your gemset. Run this:
and then run this:
you will find two versions of the gem installed. By default, it will run
bundle
with the latest version but as your gems are not compatible with it you can runbundle
with a different version of the gem. To do that you need to run:in your case it will be:
You can also remove the other versions of the
bundler
gem and just keep the one that is compatible. To remove a specific version you could do: