Rails - problem installing Spree

拥有回忆 提交于 2019-12-24 01:44:27

问题


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.


回答1:


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'



回答2:


Spree gem install instructions: https://gist.github.com/kany/6334724



来源:https://stackoverflow.com/questions/4362115/rails-problem-installing-spree

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!