![](/img/trans.png)
[英]Bundler could not find compatible versions for gem spree_core (Spree Ruby on Rails)
[英]Bundler could not find compatible versions for gem “rails”: for spree
我正在尝试使用2.2.2版本的捆绑包捆绑Rails 4.0.4的安装,并且面临以下问题:
Bundler找不到与宝石“ rails”兼容的版本:在Gemfile中:spree(= 2.2.2)ruby取决于spree_core(= 2.2.2)ruby取决于rails(〜> 4.0.5)ruby
rails (4.0.4)
在我的Gemfile中:
宝石'spree','2.2.2'
gem'spree_gateway',:git =>' https://github.com/spree/spree_gateway.git',:branch =>'2-2-stable'
gem'spree_auth_devise',:git =>' https://github.com/spree/spree_auth_devise.git',:branch =>'2-2-stable'
我修复的上述错误的解决方案:通过以下方式添加以下gem依赖项:
gem'spree',:git =>“ https://github.com/spree/spree.git ”,分支:'2-1-stable'
gem'spree_auth_devise',:git =>“ https://github.com/radar/spree_auth_devise.git ”,分支:'2-1-stable'
哪个解决了我的问题,
另外,您需要手动安装nokogiri
gem install nokogiri---use-system-libraries。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.