3

我目前正在使用捆绑程序(<2.0,>=1.3.0)运行 Rails 5.0.2。今天早上,当我运行“gem install bundler”时,它最终安装了现在与 Rails 5.0.2 不兼容的 bundler 2.0.1。我想知道是否应该升级我的 Rails 版本或降级捆绑器版本。请参阅下面我的 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.
4

1 回答 1

2

尝试

gem update --system

bundle install
于 2019-02-03T06:36:29.010 回答