[英]Rails bundler not installing spree gems
我正在嘗試創建一個使用spree的新的Rails應用程序。 我正在嘗試安裝spree_fancy
gem,並被告知將其附加到我的gemfile中。
這是我的gem文件:
source 'https://rubygems.org'
gem 'rails', '4.1.4'
gem 'sqlite3'
gem 'sass-rails', '~> 4.0.3'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.0.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'spring', group: :development
gem 'spree', '2.3.1'
gem 'spree_gateway', :git => 'https://github.com/spree/spree_gateway.git', :branch => '2-3-stable'
gem 'spree_auth_devise', :git => 'https://github.com/spree/spree_auth_devise.git', :branch => '2-3-stable'
gem 'spree_fancy', :git => 'git://github.com/spree/spree_fancy.git', :branch => '2-1-stable'
但是,在運行bundle install
,會出現以下錯誤:
Bundler could not find compatible versions for gem "spree_core":
In Gemfile:
spree_fancy (>= 0) ruby depends on
spree_core (~> 2.1.0) ruby
spree (= 2.3.1) ruby depends on
spree_core (2.3.1)
我怎樣才能解決這個問題?
更新 :
如建議的那樣,我將spree_fancy分支從2.1更改為2.3,現在有一個新錯誤
Bundler could not find compatible versions for gem "i18n":
In snapshot (Gemfile.lock):
i18n (0.6.11)
In Gemfile:
spree (= 2.3.1) ruby depends on
spree_core (= 2.3.1) ruby depends on
i18n (= 0.6.9) ruby
您正在使用Spree和Spree Fancy的不兼容版本。
嘗試更改:
gem 'spree_fancy', :git => 'git://github.com/spree/spree_fancy.git', :branch => '2-1-stable'
至
gem 'spree_fancy', :git => 'git://github.com/spree/spree_fancy.git', :branch => '2-3-stable'
並再次運行bundle install
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.