无法解决依赖关系:“捆绑商找不到兼容版本...”

时间:2018-06-29 23:01:36

标签: ruby-on-rails ruby bundler

尝试升级Rails,请在Gemfile中将版本设置为“ 5.0.0”。我不明白为什么在bundle update之后无法解析 actionpack

Resolving dependencies..............................................................
Bundler could not find compatible versions for gem "actionpack":
In Gemfile:
apivore was resolved to 1.6.2, which depends on
  actionpack (< 6, >= 4)

rails (= 5.0.0) was resolved to 5.0.0, which depends on
  actionpack (= 5.0.0)

responders (~> 2.0) was resolved to 2.4.0, which depends on
  actionpack (< 5.3, >= 4.2.0)

rspec-rails was resolved to 3.7.2, which depends on
  actionpack (>= 3.0)

据我了解,这应该已经解决为 5.0.0 。我错过了什么吗?

1 个答案:

答案 0 :(得分:0)

建议对

  1. 运行“捆绑更新”而不是“捆绑安装”,然后在此处粘贴完整的输出
  2. 按照此处概述的步骤进行操作:http://railsapps.github.io/updating-rails.html看看是否有帮助