gpt4 book ai didi

ruby-on-rails - Rails 5.0.2 与 bundler 2.0.1 不兼容

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

我目前正在运行带 bundler 的 Rails 5.0.2(<2.0,>=1.3.0)。今天早上,当我运行“gem install bundler”时,它最终安装了现在与 Rails 5.0.2 不兼容的 bundler 2.0.1。我想知道我是应该升级我的 Rails 版本还是降级 bundler 版本。请在下面查看我的 jenkins 构建的日志。

gem install bundler
Successfully installed bundler-2.0.1
Parsing documentation for bundler-2.0.1
Done installing documentation for bundler after 5 seconds
1 gem installed
bundle install
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
rails (~> 5.0.2) was resolved to 5.0.2, which depends on
bundler (< 2.0, >= 1.3.0)

Current Bundler version:
bundler (2.0.1)
This Gemfile requires a different version of Bundler.

最佳答案

尝试

gem update --system

之后

bundle install

关于ruby-on-rails - Rails 5.0.2 与 bundler 2.0.1 不兼容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54499604/

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