简体   繁体   中英

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.

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. Either, (for 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)

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM