Gem在升级到rails 5.1.1时出现问题

时间:2017-06-27 14:03:48

标签: ruby-on-rails rubygems bundler gem-bundler ruby-on-rails-5

当我尝试升级到rails 5.1.1时,我遇到了gem问题,当我从4.2运行bundle update rails时,我得到了下面的输出:任何想法可能是什么问题?

Bundler could not find compatible versions for gem "railties":
In Gemfile:
railties (~> 5.0)

devise was resolved to 4.3.0, which depends on
  railties (< 5.2, >= 4.1.0)

quiet_assets (~> 1.1) was resolved to 1.1.0, which depends on
  railties (< 5.0, >= 3.1)

rails (~> 5.1.1) was resolved to 5.1.1, which depends on
  railties (= 5.1.1)

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

1 个答案:

答案 0 :(得分:0)

认为问题可能在于railties (~> 5.0),如果你再看一点,那么它说Rails 5.1.1需要Railties 5.1.1。 rails (~> 5.1.1) was resolved to 5.1.1, which depends on railties (= 5.1.1)。在旁注,你有升级吗?可能值得从4.2升级到5.0然后再升级到5.1以确保从已弃用的方法中捕获任何错误。看到这个 - &gt; Rails Upgrade Guide

编辑添加: 看起来好像不推荐使用quiet_assets gem。如果您需要quiet_assets gem,请查看有关静默资产记录的文章(解释它比我更好)! Quiet Assets in Rails 5