【问题标题】:Solidus installation issue with rails 6rails 6的Solidus安装问题
【发布时间】:2019-09-18 08:06:13
【问题描述】:

我一直在尝试在我的 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。

【问题讨论】:

    标签: ruby-on-rails spree ruby-on-rails-6 solidus


    【解决方案1】:

    Solidus 2.10.0.beta1 刚刚发布。这样,您也可以使用 Rails 6 进行尝试:

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

    在您的 Gemfile 中。

    【讨论】:

      猜你喜欢
      • 2023-04-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-11
      • 2021-03-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多