Rails - 安装Spree的问题 [英] Rails - problem installing Spree

查看:118
本文介绍了Rails - 安装Spree的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



运行gem'spree'
时(按照中的说明进行操作) href =http://spreecommerce.com/documentation/getting_started.html =nofollow> http://spreecommerce.com/documentation/getting_started.html

我得到以下错误:

错误:执行gem时(RuntimeError)
未知命令spree

pre>

我安装了以下Spree Gems:

 gem list spree 

***本地GEMS ***

大礼包(0.30.1)
spree_api(0.30.1)
spree_auth(0.30.1)
spree_core (0.30.1)
spree_dash(0.30.1)
spree_promo(0.30.1)
spree_sample(0.30.1)

当我安装了我使用的Spree Gem时:

  sudo gem install spree 


感谢您的任何帮助。 说明实际上表示将 gem'spree'添加到您的 Gemfile (并且不会将其作为命令执行):


编辑Rails中的Gemfile
申请加入以下内容:

  gem'spree'



I'm having a problem installing Spree in a Rails app.

when I run gem 'spree' (as per the instructions on http://spreecommerce.com/documentation/getting_started.html)

I get the following error:

ERROR:  While executing gem ... (RuntimeError)
    Unknown command spree

I have the following Spree gems installed:

gem list spree

*** LOCAL GEMS ***

spree (0.30.1)
spree_api (0.30.1)
spree_auth (0.30.1)
spree_core (0.30.1)
spree_dash (0.30.1)
spree_promo (0.30.1)
spree_sample (0.30.1)

when I installed the Spree gem I used:

sudo gem install spree

thanks for any help.

解决方案

The instructions actually say to add gem 'spree' to your Gemfile (and not execute it as a command):

Edit the Gemfile in your Rails application by adding the following:

gem 'spree'

这篇关于Rails - 安装Spree的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆