簡體   English   中英

(混合)十六進制依賴解析失敗

[英](Mix) Hex dependency resolution failed

我是 phoenix 和 elixir 的新手...我正在嘗試獲取依賴項,當我運行以下命令時,出現錯誤。 我錯過了什么嗎? 還在試圖弄清楚實際錯誤的含義嗎?

mix deps.get ueberauth_auth0

Resolving Hex dependencies...
#Incompatibility<#Term, cause: {:conflict, #Incompatibility<#Term<ueberauth_auth0 >= 0.4.0>, cause: {:conflict, #Incompatibility<#Term<ueberauth_auth0 >= 0.4.0>, #Term<not oauth2 ~> 2.0>, cause: :dependency>, #Incompatibility<#Term, #Term<not oauth2 ~> 0.5>, cause: :dependency>}>, #Incompatibility<#Term, #Term<not ueberauth_auth0 ~> 2.1.0>, cause: :dependency>}> Resolution completed in 0.822s Because ueberauth_auth0 >= 0.4.0 depends on oauth2 ~> 2.0 and your app depends on oauth2 ~> 0.5, ueberauth_auth0 >= 0.4.0 is forbidden. So, because your app depends on ueberauth_auth0 ~> 2.1.0, version solving failed.

您似乎將庫的版本更改為mix.exs文件中的補丁( ~> 0.4.0 ),這實際上允許0.4.0 ≤ version < 0.5.0ueberauth本身為2.0或類似版本。

減少限制:從mix hex.info ueberauth_auth0開始,找出最適合消除沖突的版本並將其添加到您的mix.exs中以達到該值。

我已經覆蓋了插件,錯誤消失了。

{:ueberauth_auth0, "~> 2.1.0", override: true}

謝謝

暫無
暫無

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

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