我一直尝试在我的mac上安装Solidus,为此我遵循了文档https://guides.solidus.io/developers/getting-started/first-time-installation.html。
我使用的是ruby版本ruby 2.6.3p62 (2019-0416修订版67580) x86_64-darwin18 18和rails版本6.0.0
加后
gem 'solidus'
gem 'solidus_auth_devise'在尝试bundle install时,我面临以下问题
Bundler could not find compatible versions for gem "actionpack":
In snapshot (Gemfile.lock):
actionpack (= 6.0.0)
In Gemfile:
rails (~> 6.0.0) was resolved to 6.0.0, which depends on
actionpack (= 6.0.0)
solidus was resolved to 2.5.0.beta1, which depends on
solidus_core (= 2.5.0.beta1) was resolved to 2.5.0.beta1, which depends on
actionpack (~> 5.1.0)
Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
Bundler could not find compatible versions for gem "rails":
In snapshot (Gemfile.lock):
rails (= 6.0.0)
In Gemfile:
rails (~> 6.0.0)
solidus was resolved to 1.0.0.pre, which depends on
solidus_core (= 1.0.0.pre) was resolved to 1.0.0.pre, which depends on
rails (~> 4.2.0)
Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.我是不是漏掉了什么东西,或者rails版本搞砸了?我可以理解,它对rails版本5.1.0进行了调整,但对于solidus中的rails 6没有任何支持。
发布于 2019-09-19 11:45:36
Solidus 2.10.0.beta1刚刚被释放。通过这种方式,您也可以在Rails 6中尝试使用以下方法:
gem 'solidus', '~> 2.10.0.beta1'在你的档案里。
https://stackoverflow.com/questions/57987913
复制相似问题