无法创建 spree rails 应用

not able to create spree rails app

我正在尝试创建一个 rails spree 应用程序。

我正在关注这个 official link。

当我执行 spree install --auto-accept 时,出现以下错误。

Bundler could not find compatible versions for gem "rails": In snapshot (Gemfile.lock): rails (= 4.2.0)

In Gemfile: rails (= 4.2.0)

spree (~> 3.0.8) was resolved to 3.0.8, which depends on
  spree_core (= 3.0.8) was resolved to 3.0.8, which depends on
    rails (~> 4.2.2)

Running bundle update will rebuild your snapshot from scratch, using only the gems in your Gemfile, which may resolve the conflict.

然后当我 运行 bundle update 时,我遇到了以下错误。

Bundler could not find compatible versions for gem "rails": In Gemfile: rails (= 4.2.0) spree (~> 3.0.8) was resolved to 3.0.8, which depends on spree_core (= 3.0.8) was resolved to 3.0.8, which depends on rails (~> 4.2.2)

所以我无法解决这个依赖错误。

请帮忙解决。

你是对的,我遇到了同样的问题。文档有点过时了。 请重复安装过程,安装 Rails 版本 4.2.2 而不是 4.2.0:

gem install rails -v 4.2.2
gem install bundler
gem install spree_cmd
rails _4.2.2_ new mystore
cd mystore
spree install --auto-accept

我刚刚检查过,它有效。