0

当我在一个新的 Rails 项目中安装 spree 时,出现以下错误:

git://github.com/spree/spree_auth_devise.git (at 1-2-stable) is not checked  out. Please run 'bundle install'

*Would you like to install the default gateways? (yes/no) [yes] yes Would you like to install the default authentication system? (yes/no)
[yes] yes Would you like to run the migrations? (yes/no) [yes] yes
Would you like to load the seed data? (yes/no) [yes] yes Would you
like to load the sample data? (yes/no) [yes] yes
     gemfile  spree
     gemfile  spree_usa_epay
     gemfile  spree_skrill
     gemfile  spree_auth_devise
         run  bundle install from "." C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/source.rb:582:in
' '': No such file or directory - git clone
"git://github.com/spree/spree_auth_dev ise.git"
"C:/Ruby193/lib/ruby/gems/1.9.1/cache/bundler/git/spree_auth_devise-683
51354588ecb7fa5d7bc278ebd86436a50d33d" --bare --no-hardlinks
(Errno::ENOENT)
  from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/source.rb:582:in 'git'
  from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/source.rb:543:in 'checkout'
  from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/source.rb:769:in 'specs'
  from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/definition.rb:491:in 'block in converge_locked_specs'
  from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/definition.rb:480:in 'each'
  from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/definition.rb:480:in 'converge_locked_specs'
  from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/definition.rb:166:in 'resolve'
  from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/definition.rb:113:in 'specs'
  from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/definition.rb:108:in 'resolve_remotely!'
  from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/installer.rb:81:in 'run'
  from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/installer.rb:14:in 'install'
  from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/cli.rb:230:in 'install'
  from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/vendor/thor/task.rb:27:in 'run'
  from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/vendor/thor/invocation.rb:120:in 'invoke_task'
  from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/vendor/thor.rb:275:in 'dispatch'
  from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/vendor/thor/base.rb:408:in 'start'
  from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/bin/bundle:14:in 'block in <top (required)>'
  from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/friendly_errors.rb:4:in 'with_friendly_errors'
  from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/bin/bundle:14:in '<top (required)>'
  from C:/Ruby193/bin/bundle:23:in 'load'
  from C:/Ruby193/bin/bundle:23:in '<main>' git://github.com/spree/spree_auth_devise.git (at 1-2-stable) is not checked out. Please run 'bundle install'
4

2 回答 2

1

线索在这里:

run  bundle install from "." C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/source.rb:582:in
' '': No such file or directory - git clone

您正在从路径中没有“git”的 Windows 控制台中运行它。从 Git Bash 控制台运行它,或者将 git 添加到您的路径中。

于 2012-12-17T20:52:23.760 回答
0

看起来您的 Gemfile 中的 spree_auth_devise 的 github url 中有一个空格。您可能在编辑文件时不小心把它弄到了那里。清除它并重新运行bundle install,看看是否有效。

于 2012-12-17T06:36:15.900 回答