Bundler找不到gem“actionpack”的兼容版本 - 版本似乎没有冲突

问题描述 投票:0回答:1

我正在尝试将Rails 4.2.7中的Rails项目更新到5.2。我从bundle update收到以下消息:

Bundler could not find compatible versions for gem "actionpack":
  In Gemfile:
    haml-rails was resolved to 1.0.0, which depends on
      actionpack (>= 4.0.1)

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

除非我不正确理解版本要求,否则我不认为应该有任何冲突。 Rails需要actionpack 5.2.0,haml-rails需要actionpack> = 4.0.1。 5.2.0大于4.0.1。冲突在哪里?

ruby-on-rails bundler
1个回答
0
投票

好吧,我从来没有发现为什么我收到关于不兼容版本的消息,但我通过在我的Gemfile中注释gem 'haml-rails',运行bundle update,恢复gem 'haml-rails',再次运行bundle update解决了我的问题。

© www.soinside.com 2019 - 2024. All rights reserved.