Rails 5.0.2与捆绑器2.0.1不兼容

时间:2019-02-03 03:03:28

标签: ruby-on-rails incompatibility gem-bundler

我当前正在使用bundler(<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.

1 个答案:

答案 0 :(得分:2)

尝试

gem update --system

之后

bundle install