解析捆绑程序的冲突输出消息时遇到问题

时间:2019-04-23 14:37:43

标签: bundler

我要

Bundler could not find compatible versions for gem "railties":
  In Gemfile:
  some_gem was resolved to 0.0.1, which depends on
    devise (>= 3.2.4, < 4.0.0) was resolved to 3.5.10, which depends on
      railties (>= 3.2.6, < 5)

  some_gem was resolved to 0.0.1, which depends on
    rails (~> 4.0.13) was resolved to 4.0.13, which depends on
      railties (= 4.0.13)

  rspec-rails (~> 3.8) was resolved to 3.8.2, which depends on
    railties (>= 3.0)

railties = 4.0.13是否不满足所有3 railties个版本条件?

1 个答案:

答案 0 :(得分:0)

至少您可以在此处看到Devise要求使用栏杆(“> = 4.1.0”,“ <6.0”)。 https://raw.githubusercontent.com/plataformatec/devise/master/devise.gemspec

因此,您可以尝试在Gemfile中指定版本:   gem'railties','〜> 4.1.0'