设置狂欢时出错

error in setting up spree

我已经使用此命令创建了一个新的 rails 应用程序:

rails new store

rails版本为:4.2.6

Ruby版本:

$ rvm rubies
ruby-2.1.2 [ x86_64 ]
ruby-2.2.0 [ x86_64 ]
=* ruby-2.2.2 [ x86_64 ]`

当我尝试时:

spree install .

我收到以下错误:

[WARNING] Spree CMD Installer is deprecated. Please follow installation instructions at https://github.com/spree/spree#getting-started
Would you like to install the default gateways? (Recommended) (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_gateway
     gemfile  spree_auth_devise
         run  bundle install from "."
/Users/saurabh.mimani/.rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- bundler (LoadError)
    from /Users/saurabh.mimani/.rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /Users/saurabh.mimani/work/codes/spree/store/bin/spring:8:in `<top (required)>'
    from bin/rails:3:in `load'
    from bin/rails:3:in `<main>'

我也尝试按照 getting started page, but than I get some other error, which is described here 中给出的方式进行安装。

Spree 需要安装 bundler。请先安装

gem install bundler

也就是说,对于一个新的 Spree 项目,您应该遵循命令行工具的警告并按照推荐的方式设置您的新 Spree 项目。 https://github.com/spree/spree#getting-started

上的链接页面对此进行了描述

我知道问题出在哪里了:

我必须使用 rails 的 4.2.6 版本创建一个 rails 应用程序,使用以下命令:

rails _4.2.6_ new store

我刚运行rails new store的时候,它用rails5版本创建依赖,被刷爆了