Bundler版本问题4?

发布于 2025-01-26 04:29:45 字数 711 浏览 2 评论 0原文

我遇到了这个骗子错误,我该如何解决。

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

意中人 2025-02-02 04:29:45

您的宝石中可以安装多个版本的同一宝石。运行此操作:

gem install bundler:2.0.0.pre.3

然后运行此:

gem info bundler

您将找到已安装的宝石的两个版本。默认情况下,它将使用最新版本运行Bundle,但是由于您的宝石与它不兼容,因此您可以使用其他版本的GEM运行Bundle。为此,您需要运行:

bundle _version_

在您的情况下,它将是:

bundle _2.0.0.pre.3_

您还可以删除bundler GEM的其他版本,只保留一个兼容的版本。要删除特定版本,您可以执行:

gem uninstall bundler:2.3.12

There can be multiple versions of the same gem installed in your gemset. Run this:

gem install bundler:2.0.0.pre.3

and then run this:

gem info bundler

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 run bundle with a different version of the gem. To do that you need to run:

bundle _version_

in your case it will be:

bundle _2.0.0.pre.3_

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:

gem uninstall bundler:2.3.12
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文