安装 spree_wallet、spree_marketplace 和 spree_drop_ship 时出错

Error while installing spree_wallet, spree_marketplace and spree_drop_ship

我试图在我正在使用的 spree 应用程序中安装 spree_wallet、spree_drop_ship 和 spree_marketplace。

但是,在安装这些 gem 时出现了不同的问题。

1) 我可以成功安装 gem spree_wallet 的捆绑包,但是在安装 bundle exec rails g spree_wallet:install 时出现错误

Could not find generator 'spree_wallet:install'. Maybe you meant 'spree:auth:install', 'spree_gateway:install' or 'spree:install'
Run `rails generate --help` for more options.

2) 当我将 spree_marketplace 和 spree_drop_ship 添加到 gem 文件并执行 bundle install 时,它给我不同的版本冲突错误。

Bundler could not find compatible versions for gem "spree_core":
  In snapshot (Gemfile.lock):
    spree_core (= 3.0.4)

  In Gemfile:
    spree_core (= 3.0.4) ruby

    spree_core (~> 3.0.0) ruby

    spree_core (~> 3.0.0) ruby

    spree_core (>= 0) ruby

    spree_drop_ship (>= 0) ruby depends on
      spree_core (~> 3.1.0.beta) ruby

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.

3) 类似地,当我从 gem 文件中删除 spree_drop_ship 时,spree_marketplace 给出错误说没有找到 gem spree_drop_ship,我认为对于市场的运作是必要的 gem

是否有任何解决方法可以在不将 spree 从当前版本 3.0.4 降级的情况下解决问题??

对于那些遇到同样问题的人,我找到了添加以下 gem 的解决方案

gem 'spree_drop_ship', github: 'spree-contrib/spree_drop_ship', branch: '3-0-stable'
gem 'spree_marketplace', github: 'firman/spree_marketplace'

firman/spree_marketplace 派生自 spree-contrib/spree_marketplace 并解决了依赖问题