gpt4 book ai didi

ruby-on-rails - bundle 安装找不到 gem "bundler"的兼容版本

转载 作者:行者123 更新时间:2023-12-04 06:31:31 26 4
gpt4 key购买 nike

当我输入 bundle install 时出现此错误。我试图找到解决方案,但没有解决我的问题。请帮我。

 Bundler could not find compatible versions for gem "bundler":
In Gemfile:
rails (= 4.1.8) was resolved to 4.1.8, which depends on
bundler (< 2.0, >= 1.3.0)

Current Bundler version:
bundler (2.0.1)
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.0, >= 1.3.0)', which is required by gem 'rails
(= 4.1.8)', in any of the sources.

Bundler could not find compatible versions for gem "rails":
In Gemfile:
rails (= 4.1.8)

animate-rails was resolved to 1.0.10, which depends on
rails

最佳答案

或者,您也可以完全删除 bundler 2.x 并仅使用 Bundler 1.x:

gem uninstall bundler -v ">= 2.0" 
gem install bundler -v "< 2.0"

# Now you can use bundler as before
bundle install

关于ruby-on-rails - bundle 安装找不到 gem "bundler"的兼容版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54901077/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com