简体   繁体   English

找不到与宝石“ spree_core”兼容的版本

[英]Could not find compatible versions for gem “spree_core”

I've just ran through the 'Getting Started' guide from Spree commerce and I've hit an error while following it. 我刚刚浏览了Spree Commerce的“入门”指南,但在遵循该指南时遇到了错误。

I've run the following commands: 我运行了以下命令:

gem install spree_cmd
bundle install

Then I get hit with the following errors in the console 然后我在控制台中遇到以下错误

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)

Which looks like it all checks out - but it seems to be failing to bundle install. 看起来一切都已签出-但似乎无法捆绑安装。

My Gemfile 我的宝石文件

gem 'spree', '~> 3.1.0'
gem 'spree_gateway', '~> 3.0.0'
gem 'spree_auth_devise', '~> 3.0.0'

Any help would be brilliant 任何帮助都会很棒

You same versions for all 3 extensions/gems. 您为所有3个扩展/宝石使用相同的版本。 Either, (for Spree 3.1.x) 要么(针对Spree 3.1.x)

gem 'spree', '~> 3.1.0'
gem 'spree_gateway', '~> 3.1.0'
gem 'spree_auth_devise', '~> 3.1.0'

Or, (for Spree 3.0.x) 或者,(对于Spree 3.0.x)

gem 'spree', '~> 3.0.0'
gem 'spree_gateway', '~> 3.0.0'
gem 'spree_auth_devise', '~> 3.0.0'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Bundler找不到与宝石spree_core兼容的版本(Spree Ruby on Rails) - Bundler could not find compatible versions for gem spree_core (Spree Ruby on Rails) 找不到宝石'spree_core(〜> 2.0.0.beta)红宝石 - Could not find gem 'spree_core (~> 2.0.0.beta) ruby Bundler找不到与宝石“ rails”兼容的版本:大礼包 - Bundler could not find compatible versions for gem “rails”: for spree rails错误Bundler找不到与宝石宝石“ spree_backend”兼容的版本 - rails error Bundler could not find compatible versions for gem gem “spree_backend” 使用BitPay和Spree Commerce时,Bundler找不到与宝石“铁路”兼容的版本 - Bundler could not find compatible versions for gem “railties” when using BitPay and Spree Commerce Spree Commerce安装错误,Bundler找不到gem“rails”的兼容版本 - Spree Commerce installation error, Bundler could not find compatible versions for gem “rails” 找不到与gem兼容的版本 - Could not find compatible versions for gem Bundler找不到与宝石“ rack”兼容的版本: - Bundler could not find compatible versions for gem “rack”: 找不到与宝石“ ruby​​zip”兼容的版本 - could not find compatible versions for gem “rubyzip” Bundler 找不到 gem "activemodel" 的兼容版本: - Bundler could not find compatible versions for gem "activemodel":
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM