必须创建静态页面使用相同布局的其余疯狂商业网站。Spree_static_content是我尝试使用的宝石。但是,在bundle安装时会出现以下错误。
Bundler could not find compatible versions for gem "spree_core":
In snapshot (Gemfile.lock):
spree_core (= 3.3.1)
In Gemfile:
spree (~> 3.3.0) was resolved to 3.3.1, which depends on
spree_core (= 3.3.1)
spree (~> 3.3.0) was resolved to 3.3.1, which depends on
spree_core (= 3.3.1)
spree (~> 3.3.0) was resolved to 3.3.1, which depends on
spree_core (= 3.3.1)
spree (~> 3.3.0) was resolved to 3.3.1, which depends on
spree_core (= 3.3.1)
spree (~> 3.3.0) was resolved to 3.3.1, which depends on
spree_core (= 3.3.1)
spree_gateway (~> 3.3) was resolved to 3.3.0, which depends on
spree_core (< 4.0, >= 3.1.0)
spree_gateway (~> 3.3) was resolved to 3.3.0, which depends on
spree_core (< 4.0, >= 3.1.0)
spree_static_content was resolved to 3.0.1, which depends on
spree_core (~> 3.0.0)
Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
发布于 2017-11-11 15:27:37
找到了此问题的解决方案,这是因为Rails 5依赖于gem全球化。将以下内容添加到Gemfile中:
gem 'globalize', git: 'https://github.com/globalize/globalize'
gem 'activemodel-serializers-xml'
接下来,bundle install
和您将对上述问题中的错误进行网络处理.
https://stackoverflow.com/questions/47237335
复制相似问题