2

我一直在尝试在我的 Mac 上安装 Solidus,为此我遵循了文档https://guides.solidus.io/developers/getting-started/first-time-installation.html

我正在使用 ruby​​ 版本ruby​​ 2.6.3p62(2019-04-16 修订版 67580)[x86_64-darwin18]和 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。

4

1 回答 1

2

Solidus2.10.0.beta1刚刚发布。这样,您也可以使用 Rails 6 进行尝试,方法是:

gem 'solidus', '~> 2.10.0.beta1'

在您的 Gemfile 中。

于 2019-09-19T11:45:36.357 回答