我正在尝试将一个Rails项目从Rails 4.2.7更新到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。冲突在哪里?
发布于 2018-09-14 05:01:17
好吧,我从来没有发现为什么我会收到关于不兼容版本的消息,但我通过在Gemfile中注释掉gem 'haml-rails'、运行bundle update、恢复gem 'haml-rails'并再次运行bundle update解决了我的问题。
https://stackoverflow.com/questions/52320862
复制相似问题