我正在尝试在我正在使用的狂欢应用中安装spree_wallet,spree_drop_ship和spree_marketplace。
但是,安装这些宝石时会出现不同的问题。
1)我可以成功为gem spree_wallet安装bundle但是在安装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添加到gemfile并执行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)同样,当我从gemfile中删除spree_drop_ship时,spree_marketplace会给出错误,说明找不到gem spree_drop_ship,我认为这对于marketplace gem的工作是必要的
是否有任何解决方法可以在不降级当前版本3.0.4的狂欢的情况下解决问题?
答案 0 :(得分:0)
对于那些正在努力奋斗的人,我找到了添加以下宝石的解决方案
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
分叉并解决了依赖性问题