【发布时间】:2020-04-11 05:03:22
【问题描述】:
最近从 Mac 切换到 PC 并与bundle install 碰壁。
我收到一个错误,但我无法弄清楚它的含义以及如何解决它。我搜索了 GitHub 问题和其他 StackOverflow 线程,但建议的修复都没有帮助我,因为它们主要集中在 Linux 上。
Bundler found conflicting requirements for the Ruby version:
In Gemfile:
Ruby (~> 2.6.5.0)
pg was resolved to 0.21.0, which depends on
Ruby (< 2.5) x64-mingw32
Ruby (< 2.5), which is required by gem 'nokogiri (>= 1.4.1)', is not available
in the local ruby installation
【问题讨论】:
-
您的 gem / Ruby 版本不匹配。您正在使用(或尝试使用)哪个 Ruby 版本?这是一个可以帮助您回答我的问题的指南:blog.arkency.com/which-ruby-version-am-i-using-how-to-check
-
我正在使用
2.6.5,这是 gemfile 中列出的版本。
标签: ruby-on-rails ruby installation bundler nokogiri