简体   繁体   English

Ruby 导轨错误:捆绑器找不到 gem“捆绑器”的兼容版本:

[英]Ruby rails error: Bundler could not find compatible versions for gem "bundler":

Bundler could not find compatible versions for gem "bundler": Bundler 找不到 gem "bundle" 的兼容版本:

The error is below错误如下

Bundler could not find compatible versions for gem "bundler":
  In Gemfile:
    bundler (~> 2.2)

    rails (= 6.1.4.6) was resolved to 6.1.4.6, which depends on
      bundler (>= 2.2.0)

  Current Bundler version:
    bundler (2.1.4)
This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running `gem install bundler`?

Could not find gem 'bundler (~> 2.2)', which is required by gem 'rails (= 6.1.4.6)', in any of the relevant sources:
  the local ruby installation

Your solution is actually in the error message that you are getting.您的解决方案实际上在您收到的错误消息中。 Run

gem install bundler

to install the latest version of bundler (that should satisfy the constraints安装最新版本的捆绑器(应该满足约束

You can also specify a particular version of any gem by specifying the version flag.您还可以通过指定版本标志来指定任何 gem 的特定版本。 For example.例如。

gem install bundler -v 2.2.0

gem install bundler --version 2.2.19 --default

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Bundler 找不到 gem“ruby”的兼容版本 - Bundler could not find compatible versions for gem "ruby" Ruby on Rails:捆绑安装找不到“捆绑器”gem的兼容版本 - Ruby on Rails: Bundle install could not find compatible versions for “bundler” gem Bundler 找不到 gem“bundler”的兼容版本: - Bundler could not find compatible versions for gem "bundler": Bundler找不到宝石“ bundler”的兼容版本 - Bundler could not find compatible versions for gem “bundler” 捆绑器找不到兼容的捆绑器版本-Ruby On Rails **添加载波Gem ** - Bundler could not find compatible versions of bundler - Ruby On Rails **Adding Carrierwave Gem** ActiveAdmin with Rails 4:Bundler找不到宝石“ rails”的兼容版本 - ActiveAdmin with Rails 4: Bundler could not find compatible versions for gem “rails” Bundler找不到与“ bundler”宝石兼容的版本:在Gemfile中:rails(= 3.0.0)已解析为3.0.0,这取决于捆绑程序(〜> 1.0.0) - Bundler could not find compatible versions for gem “bundler”: In Gemfile: rails (= 3.0.0) was resolved to 3.0.0, which depends on bundler (~> 1.0.0) 安装 Rails 6 - Bundler 找不到 gem actionpack 的兼容版本 - Install Rails 6 - Bundler could not find compatible versions for gem actionpack Bundler找不到宝石“ sass-rails”的兼容版本 - Bundler could not find compatible versions for gem “sass-rails” Bundler找不到与gem“ actionpack”兼容的版本-Rails - Bundler could not find compatible versions for gem “actionpack” - Rails
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM