ruby-on-rails - Bundler 找不到 gem "omniauth" 的兼容版本
问题描述
我试图在我的应用程序中实现条带omniauth,但也使用google omniauth。两种宝石都依赖于宝石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
推荐阅读
- java - 如何为 Spring 的 @PropertySource 注释传递命令行参数?
- typescript - 如何在同时使用 babel 和 typescript 时避免重复的转换?
- layout - 为什么这种布局结果如此缓慢,尤其是在移动设备上?
- java - 在多维数组中划分元素?
- android-studio - Android Studio AVD Manager 模拟器无法在 Windows 10 中下载它发生了很多次
- google-cloud-firestore - 如何使用 OR [ || ] Cloud Firestore 规则中的运算符
- c++ - 如何启用使用另一个类的静态方法的模板函数的自动推导,从而消除冗长的调用者代码
- python - 显示模型输出的问题.ManyToManyField(User)
- javascript - 错误:无效登录:535-5.7.8 不接受用户名和密码
- react-native - 如何获取博览会屏幕的屏幕截图?