如何解决gem冲突错误? - Ruby / Rails

时间:2015-02-22 22:36:01

标签: ruby-on-rails ruby gem

尝试运行gem install slickgrid-rails,显示:

  

错误:执行gem时...(Gem :: DependencyResolutionError)       冲突依赖项actionpack(〜> 3.1.0)和actionpack(= 3.0.0)激活的actionpack-3.0.0与冲突依赖项不匹配(〜> 3.1.0)

     

冲突的依赖链:

slickgrid-rails (>= 0), 0.3.1 activated, depends on
railties (~> 3.0), 3.0.0 activated, depends on
actionpack (= 3.0.0), 3.0.0 activated
     

slickgrid-rails (>= 0), 0.3.1 activated, depends on
sass-rails (>= 0), 3.1.0 activated, depends on
actionpack (~> 3.1.0)

有什么建议吗?

1 个答案:

答案 0 :(得分:0)

slickgrid-rails添加到您的Gemfile中,然后运行bundle install