如何强制禁用依赖冲突?

时间:2015-04-25 02:25:52

标签: ruby-on-rails

是否有任何手动蛮力方式来解决冲突问题?

Bundler could not find compatible versions for gem "bson":
  In Gemfile:
    mongo (>= 0) ruby depends on
      bson (= 1.11.1) ruby

    bson_ext (>= 0) ruby depends on
      bson (~> 1.11.1) ruby

    mongoid (~> 4.0) ruby depends on
      moped (~> 2.0.0) ruby depends on
        bson (~> 2.2) ruby

1 个答案:

答案 0 :(得分:0)

无法强制gem使用不兼容的依赖版本。但是你可以尝试更新所有宝石,捆绑包会尝试为你调整依赖关系。

更新所有宝石:bundle update

更新一组特定宝石:bundle update mongo mongoid bson bson_ext