Rails: Bundle 无法解析依赖项
Rails: Bundle cannot resolve dependencies
我正在使用各种 omniauth gem,在我添加 PayPal 后,当 运行 bundle
或 bundle update
:
时出现此错误
Bundler could not find compatible versions for gem "omniauth-oauth2":
In Gemfile:
omniauth-dribbble (~> 0.0.1) x86-mingw32 was resolved to 0.0.1, which
depends on
omniauth-oauth2 (~> 1.1) x86-mingw32
omniauth-dribbble (~> 0.0.1) x86-mingw32 was resolved to 0.0.1, which
depends on
omniauth-oauth2 (~> 1.1) x86-mingw32
omniauth-facebook (~> 4.0) x86-mingw32 was resolved to 4.0.0, which depends
on
omniauth-oauth2 (~> 1.2) x86-mingw32
omniauth-google-oauth2 (~> 0.4.1) x86-mingw32 was resolved to 0.4.1, which
depends on
omniauth-oauth2 (>= 1.3.1) x86-mingw32
omniauth-paypal (~> 1.2) x86-mingw32 was resolved to 1.2, which depends on
omniauth-oauth2 (~> 1.1.0) x86-mingw32
有没有办法绕过这个并仍然使用 Omniauth PayPal Gem?
编辑:
PayPal Gem 确实与 Google Omniauth 解决方案冲突。我不能同时拥有它们。为什么?
你不能同时拥有它们,因为 paypal 依赖于 omniauth 1.1 而 google-oath2 依赖于 omniauth 1.3。您应该等到 paypal 使用 omniauth 1.3。
首先确保您使用的是更新版本的 gems 和捆绑包更新。如果这不起作用。
然后你可以分叉 gems。更改 "omniauth-oauth2" 的依赖项并引用您的分叉 gems。这样,两个 gem 都引用相同的从属 gem.
我正在使用各种 omniauth gem,在我添加 PayPal 后,当 运行 bundle
或 bundle update
:
Bundler could not find compatible versions for gem "omniauth-oauth2":
In Gemfile:
omniauth-dribbble (~> 0.0.1) x86-mingw32 was resolved to 0.0.1, which
depends on
omniauth-oauth2 (~> 1.1) x86-mingw32
omniauth-dribbble (~> 0.0.1) x86-mingw32 was resolved to 0.0.1, which
depends on
omniauth-oauth2 (~> 1.1) x86-mingw32
omniauth-facebook (~> 4.0) x86-mingw32 was resolved to 4.0.0, which depends
on
omniauth-oauth2 (~> 1.2) x86-mingw32
omniauth-google-oauth2 (~> 0.4.1) x86-mingw32 was resolved to 0.4.1, which
depends on
omniauth-oauth2 (>= 1.3.1) x86-mingw32
omniauth-paypal (~> 1.2) x86-mingw32 was resolved to 1.2, which depends on
omniauth-oauth2 (~> 1.1.0) x86-mingw32
有没有办法绕过这个并仍然使用 Omniauth PayPal Gem?
编辑:
PayPal Gem 确实与 Google Omniauth 解决方案冲突。我不能同时拥有它们。为什么?
你不能同时拥有它们,因为 paypal 依赖于 omniauth 1.1 而 google-oath2 依赖于 omniauth 1.3。您应该等到 paypal 使用 omniauth 1.3。
首先确保您使用的是更新版本的 gems 和捆绑包更新。如果这不起作用。
然后你可以分叉 gems。更改 "omniauth-oauth2" 的依赖项并引用您的分叉 gems。这样,两个 gem 都引用相同的从属 gem.