我刚刚浏览了“入门”杂志'来自Spree commerce的指南,我在跟踪时遇到了错误。
我运行了以下命令:
gem install spree_cmd
bundle install
然后我在控制台中遇到以下错误
Bundler could not find compatible versions for gem "spree_core":
In Gemfile:
spree_auth_devise (~> 3.0.0) was resolved to 3.0.5, which depends on
spree_core (~> 3.0.0)
spree (~> 3.1.0) was resolved to 3.1.0, which depends on
spree_backend (= 3.1.0) was resolved to 3.1.0, which depends on
spree_core (= 3.1.0)
spree (~> 3.1.0) was resolved to 3.1.0, which depends on
spree_backend (= 3.1.0) was resolved to 3.1.0, which depends on
spree_core (= 3.1.0)
spree (~> 3.1.0) was resolved to 3.1.0, which depends on
spree_backend (= 3.1.0) was resolved to 3.1.0, which depends on
spree_core (= 3.1.0)
spree (~> 3.1.0) was resolved to 3.1.0, which depends on
spree_backend (= 3.1.0) was resolved to 3.1.0, which depends on
spree_core (= 3.1.0)
spree (~> 3.1.0) was resolved to 3.1.0, which depends on
spree_backend (= 3.1.0) was resolved to 3.1.0, which depends on
spree_core (= 3.1.0)
看起来所有都检查出来 - 但它似乎无法捆绑安装。
我的Gemfile
gem 'spree', '~> 3.1.0'
gem 'spree_gateway', '~> 3.0.0'
gem 'spree_auth_devise', '~> 3.0.0'
任何帮助都会很棒
答案 0 :(得分:1)
所有3个扩展/宝石的相同版本。 要么(对于Spree 3.1.x)
gem 'spree', '~> 3.1.0'
gem 'spree_gateway', '~> 3.1.0'
gem 'spree_auth_devise', '~> 3.1.0'
或者,(对于Spree 3.0.x)
gem 'spree', '~> 3.0.0'
gem 'spree_gateway', '~> 3.0.0'
gem 'spree_auth_devise', '~> 3.0.0'