问题
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