捆绑安装误差“omniauth-的oauth2”(Bundle install error with

2019-11-01 13:19发布

运行bundle install ,我得到以下错误(完整的跟踪: http://pastebin.com/Vp4nHc2p ):

Bundler could not find compatible versions for gem "omniauth-oauth2":
  In Gemfile:
    omniauth-facebook (~> 1.2.0) ruby depends on
      omniauth-oauth2 (~> 1.0.0) ruby

    omniauth-github (~> 1.0.1) ruby depends on
      omniauth-oauth2 (1.1.1)

看到我的Gemfile: http://pastebin.com/vMcHDHa8

任何想法如何解决呢?

Answer 1:

嗨,你可能需要安装接受omniauth-oath2相同版本的omniauth Facebook和GitHub的版本..

它看起来像你需要更新这两个宝石......那么他们都将接受omniauth-oath2 1.1版

退房依赖于:

https://rubygems.org/gems/omniauth-facebook

https://rubygems.org/gems/omniauth-github

只需更换与您的Gemfile为omniauth,github上和Facebook宝石链接:

gem "omniauth-github", "~> 1.0.3"
gem "omniauth-facebook", "~> 1.4.1"

然后运行bundle update omniauth-gihub然后bundle update omniauth-facebook

那么你应该确定。

注:我假设1.1和1.1.0的版本相同,如果不是你可能需要通过读出依赖关系omniauth,Facebook和GitHub的咨询RubyGems的发现3级兼容的宝石



文章来源: Bundle install error with “omniauth-oauth2”