Bundle install error with “omniauth-oauth2”

三世轮回 提交于 2019-12-25 04:56:08

问题


Running bundle install I get the following error (full trace: 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)

To see my Gemfile: http://pastebin.com/vMcHDHa8

Any idea how to solve it?


回答1:


Hi you probably need to install omniauth facebook and github versions which accept the same version of omniauth-oath2 ..

It looks like you need to update both gems... then they will both accept omniauth-oath2 version 1.1

Check out the dependencies on:

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

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

Just replace the links for omniauth-github and facebook gems in your gemfile with:

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

Then run bundle update omniauth-gihub and then bundle update omniauth-facebook

You should then be ok.

NOTE: I am assuming 1.1 and 1.1.0 are the same version, if not you may need to consult rubygems to find 3 compatible gems by reading out the dependencies for omniauth-facebook and github



来源:https://stackoverflow.com/questions/14839972/bundle-install-error-with-omniauth-oauth2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!