RAILS:Bundler 在安装 ActiveAdmin 时找不到 gem "actionpack" 的兼容版本
RAILS : Bundler could not find compatible versions for gem "actionpack" on installing ActiveAdmin
我在我的 gemfile 中添加了 gem 'activeadmin', github: 'activeadmin'
并进行了捆绑安装。然后它抛出以下错误。
Bundler could not find compatible versions for gem "actionpack":
In snapshot (Gemfile.lock):
actionpack (= 5.0.0.1)
In Gemfile:
activeadmin (~> 1.0.0.pre4) was resolved to 1.0.0.pre4, which depends on
formtastic (~> 3.1) was resolved to 3.1.4, which depends on
actionpack (>= 3.2.13)
activeadmin (~> 1.0.0.pre4) was resolved to 1.0.0.pre4, which depends on
inherited_resources (~> 1.6) was resolved to 1.6.0, which depends on
actionpack (< 5, >= 3.2)
activeadmin (~> 1.0.0.pre4) was resolved to 1.0.0.pre4, which depends on
inherited_resources (~> 1.6) was resolved to 1.6.0, which depends on
actionpack (< 5, >= 3.2)
activeadmin (~> 1.0.0.pre4) was resolved to 1.0.0.pre4, which depends on
kaminari (~> 0.15) was resolved to 0.17.0, which depends on
actionpack (>= 3.0.0)
activeadmin (~> 1.0.0.pre4) was resolved to 1.0.0.pre4, which depends on
ransack (~> 1.3) was resolved to 1.8.2, which depends on
actionpack (>= 3.0)
Running bundle update
will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
我做了包更新,但错误还是一样。任何帮助将不胜感激。
编辑
gem 'activeadmin'
is not compatible with rails 5
这个解决方案对我有用。对于 rails 5
,您必须添加另一个 gem
,如下所示:
gem 'activeadmin', github: 'activeadmin'
gem 'inherited_resources', github: 'activeadmin/inherited_resources'
要进一步阅读,请转到 this 话题。
您必须在 rails 5
中使用活动管理员安装继承资源 gem
gem 'activeadmin', github: 'activeadmin'
gem 'inherited_resources', github: 'activeadmin/inherited_resources'
我在我的 gemfile 中添加了 gem 'activeadmin', github: 'activeadmin'
并进行了捆绑安装。然后它抛出以下错误。
Bundler could not find compatible versions for gem "actionpack":
In snapshot (Gemfile.lock):
actionpack (= 5.0.0.1)
In Gemfile:
activeadmin (~> 1.0.0.pre4) was resolved to 1.0.0.pre4, which depends on
formtastic (~> 3.1) was resolved to 3.1.4, which depends on
actionpack (>= 3.2.13)
activeadmin (~> 1.0.0.pre4) was resolved to 1.0.0.pre4, which depends on
inherited_resources (~> 1.6) was resolved to 1.6.0, which depends on
actionpack (< 5, >= 3.2)
activeadmin (~> 1.0.0.pre4) was resolved to 1.0.0.pre4, which depends on
inherited_resources (~> 1.6) was resolved to 1.6.0, which depends on
actionpack (< 5, >= 3.2)
activeadmin (~> 1.0.0.pre4) was resolved to 1.0.0.pre4, which depends on
kaminari (~> 0.15) was resolved to 0.17.0, which depends on
actionpack (>= 3.0.0)
activeadmin (~> 1.0.0.pre4) was resolved to 1.0.0.pre4, which depends on
ransack (~> 1.3) was resolved to 1.8.2, which depends on
actionpack (>= 3.0)
Running
bundle update
will rebuild your snapshot from scratch, using only the gems in your Gemfile, which may resolve the conflict.
我做了包更新,但错误还是一样。任何帮助将不胜感激。
编辑
gem 'activeadmin'
is not compatible with rails 5
这个解决方案对我有用。对于 rails 5
,您必须添加另一个 gem
,如下所示:
gem 'activeadmin', github: 'activeadmin'
gem 'inherited_resources', github: 'activeadmin/inherited_resources'
要进一步阅读,请转到 this 话题。
您必须在 rails 5
中使用活动管理员安装继承资源 gemgem 'activeadmin', github: 'activeadmin'
gem 'inherited_resources', github: 'activeadmin/inherited_resources'