繁体   English   中英

安装gem“ joyride-rails”时出现依赖性错误

[英]Dependency error while installing the gem “joyride-rails”

我的rails版本是3.2.12

我正在尝试在应用程序中实现gem "joyride-rails", "~> 0.0.14" ,但它与我的其他gem发生冲突。 在我的Gemfile中:

gem "haml-rails", ">= 0.4"
gem 'activeadmin-mongoid', github: 'elia/activeadmin-mongoid', branch: 'active-admin-spec-suite'

当我运行bundle命令时,出现以下错误:

Bundler could not find compatible versions for gem "haml":
  In Gemfile:
    joyride-rails (~> 0.0.14) ruby depends on
      haml (~> 3.1) ruby

    haml-rails (>= 0.4) ruby depends on
      haml (4.0.3)

因此,如果我添加宝石"haml", "~> 4.0.3"则新的包冲突为:

Bundler could not find compatible versions for gem "bourbon":
  In Gemfile:
    joyride-rails (~> 0.0.14) ruby depends on
      bourbon (~> 2.0) ruby

    activeadmin-mongoid (>= 0) ruby depends on
      bourbon (3.1.8)

然后如果我添加宝石"bourbon", "~> 3.1.8"则会出现新的冲突:

Bundler could not find compatible versions for gem "bourbon":
  In Gemfile:
    joyride-rails (~> 0.0.14) ruby depends on
      bourbon (~> 2.0) ruby

    bourbon (3.1.8)

该怎么办?

Github问题

该gem当前不能与最新版本的haml一起使用。 (C)

我认为,如果可能的话,您可以降级您的haml版本。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM