简体   繁体   English

rails错误Bundler找不到与宝石宝石“ spree_backend”兼容的版本

[英]rails error Bundler could not find compatible versions for gem gem “spree_backend”

I want to configure email setting in spree I add this gem according to this tutorial https://guides.spreecommerce.com/user/configuring_mail_methods.html 我想在狂欢中配置电子邮件设置,我根据本教程https://guides.spreecommerce.com/user/configuring_mail_methods.html添加了这个gem

  gem 'spree_mail_settings', github: 'spree-contrib/spree_mail_settings', branch: 'master'

But running bundle install gives me the following error: 但是运行捆绑安装会给我以下错误:

Bundler could not find compatible versions for gem "spree_backend":
  In snapshot (Gemfile.lock):
    spree_backend (= 3.0.7)

  In Gemfile:
    spree (~> 3.0.7) was resolved to 3.0.7, which depends on
      spree_backend (= 3.0.7)

    spree_mail_settings was resolved to 2.2.0, which depends on
      spree_backend (~> 3.1.0.beta)

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.

Running bundle update gives me this: 运行包更新给我这个:

Bundler could not find compatible versions for gem "spree_backend":
  In Gemfile:
    spree_mail_settings was resolved to 2.2.0, which depends on
      spree_backend (~> 3.1.0.beta)

Could not find gem 'spree_backend (~> 3.1.0.beta)', which is required by gem
'spree_mail_settings', in any of the sources.

in my gemfile I have: 在我的gemfile中,我有:

gem 'spree', '~> 3.0.7'
gem 'spree_gateway', '~> 3.0.0'
gem 'spree_auth_devise', '~> 3.0.0'
gem 'spree_i18n', git: 'git://github.com/spree/spree_i18n.git', branch: '3-0-stable'
gem 'spree_mail_settings', github: 'spree-contrib/spree_mail_settings', branch: 'master'

I tried to write like this gem 'spree', '~> 3.1.0' but it didn't work 我试图像这样的gem 'spree', '~> 3.1.0'gem 'spree', '~> 3.1.0'但没有用

~> 3.0.7 is equivalent to >= 3.0.7 and <3.1 〜> 3.0.7等效于> = 3.0.7和<3.1

Rather than trying to tease apart what is and isn't compatible, I would install it like: 与其尝试弄清什么是兼容和哪些不兼容,不如将其安装为:

gem 'spree'
gem 'spree_gateway'
gem 'spree_auth_devise'
gem 'spree_i18n', git: 'git://github.com/spree/spree_i18n.git', branch: '3-    0-stable'
gem 'spree_mail_settings', github: 'spree-contrib/spree_mail_settings', branch: 'master'

then I'd bundle install and bundle update. 然后我将捆绑安装和捆绑更新。 I'd then check the gemfile.lock and see what the gems versioned themselves to. 然后,我将检查gemfile.lock,并查看这些gem版本本身。 Hopefully it resolves appropriately. 希望它能解决。

Delete your Gemfile.lock file then run bundle install and bundle update . 删除您的Gemfile.lock文件,然后运行bundle installbundle update I'm not assure this options should work,just try it. 我不确定此选项是否可以正常工作,请尝试一下。

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

相关问题 Bundler找不到与宝石“ rails”兼容的版本:大礼包 - Bundler could not find compatible versions for gem “rails”: for spree Spree Commerce安装错误,Bundler找不到gem“rails”的兼容版本 - Spree Commerce installation error, Bundler could not find compatible versions for gem “rails” Ruby 导轨错误:捆绑器找不到 gem“捆绑器”的兼容版本: - Ruby rails error: Bundler could not find compatible versions for gem "bundler": Bundler找不到与宝石spree_core兼容的版本(Spree Ruby on Rails) - Bundler could not find compatible versions for gem spree_core (Spree Ruby on Rails) Bundler 找不到 gem“bundler”的兼容版本: - Bundler could not find compatible versions for gem "bundler": Bundler找不到宝石“ bundler”的兼容版本 - Bundler could not find compatible versions for gem “bundler” ActiveAdmin with Rails 4:Bundler找不到宝石“ rails”的兼容版本 - ActiveAdmin with Rails 4: Bundler could not find compatible versions for gem “rails” Bundler无法找到gem的兼容版本,更新了Rails app - Bundler could not find compatible versions for gem, updating Rails app RoR-Bundler找不到与宝石“ rails”兼容的版本 - RoR - Bundler could not find compatible versions for gem “rails” Bundler 安装 - 找不到 gem“actionpack”的兼容版本 - Rails 5 - Bundler install - could not find compatible versions for gem "actionpack" - Rails 5
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM