activeadmin.git (at master) is not yet checked out error when installing active admin 错误

activeadmin.git (at master) is not yet checked out error when installing active admin

Active admin gem 已添加到我的 rails 项目,但每次我尝试安装 rails g active_admin:install 时,我都会收到类似

的错误

git://github.com/activeadmin/activeadmin.git (at master) is not yet checked out. Run bundle install first.

我肯定运行捆绑在运行"rails g active_admin:install"之前。在 运行 "bundle show" 之后,我看到我已将“* activeadmin (1.0.0.pre 3f916d6)”添加到我的项目中,但不断收到此错误 message.My gem 文件以下

source 'https://rubygems.org'

gem 'rails', '4.1.8'
gem 'sqlite3'
gem 'sass-rails', '~> 4.0.3'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.0.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0',

    group: :doc
gem 'spring',        group: :development

gem 'devise'
gem 'activeadmin', github: 'activeadmin'

我遇到了同样的问题。这与 spring 有关,因为当我从 gemfile 中删除它并再次 运行 bundle install 时,我能够 运行 rails g active_admin:install

除了删除 spring,您还可以尝试 the spring github issue 中的提示:

尝试 运行 bundle exec spring binstub --all - 它应该会重新生成您的 bin/spring 文件