簡體   English   中英

Bundler 找不到 gem “omniauth”的兼容版本

[英]Bundler could not find compatible versions for gem “omniauth”

我試圖在我的應用程序中實現 stripe omniauth,但也使用 google omniauth。 兩個 gems 都依賴 gem omniauth 但在不同的版本中,有人知道如何解決嗎?

嘗試捆綁時出現的錯誤:

    Bundler could not find compatible versions for gem "omniauth":
  In Gemfile:
    omniauth-google-oauth2 (>= 1.0.0) was resolved to 1.0.0, which depends on
      omniauth (~> 2.0)

    omniauth-stripe-connect was resolved to 2.9.0, which depends on
      omniauth (~> 1.0)

如果可以將 omniauth-google-oauth2 降級到 0.8.2,它可以在我剛剛嘗試過的同一個 Gemfile 中與 omniauth-stripe-connect 2.10.1 一起使用並使其正常工作:

Using omniauth 1.9.1
Using omniauth-oauth2 1.7.1 
Using omniauth-google-oauth2 0.8.2 
Using omniauth-stripe-connect 2.10.1

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM