繁体   English   中英

设置大礼包时出错

[英]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>'

我也尝试安装在被赋予入门页面,但比我得到一些其他错误,这是描述在这里

Spree需要安装捆绑器。 请先安装

gem install bundler

也就是说,对于新的Spree项目,您应该遵循命令行工具的警告,并以建议的方式设置新的Spree项目。 这在https://github.com/spree/spree#getting-started的链接页面上进行了描述

我发现了问题所在:

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

rails _4.2.6_ new store

当我刚运行rails new store ,它曾经使用rails 5版本创建依赖关系,而这一版本大肆狂欢。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM