我是凤凰城和灵丹妙药的新手。我试图获得依赖项,当我运行下面的命令时,我得到了错误。我是不是遗漏了什么?还在努力弄清楚实际的错误意味着什么?
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.发布于 2022-11-30 09:58:25
您似乎将库的版本插入到mix.exs文件中的修补程序(mix.exs)中,这实际上允许0.4.0 ≤ version < 0.5.0和ueberauth本身达到2.0或类似的目的。
减少限制:从mix hex.info ueberauth_auth0开始,找出最适合消除冲突的版本,并将其在mix.exs中提高到这个值。
https://stackoverflow.com/questions/74622941
复制相似问题