[英]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 install
和bundle update
。 I'm not assure this options should work,just try it. 我不确定此选项是否可以正常工作,请尝试一下。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.