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

问题描述



运行gem'spree'
时(按照)

我得到以下错误:

错误:执行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 (并且不会将其作为命令执行):


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):

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

09-11 20:27