title: How to fix conflicting requirements installing Nokogiri for Rails on Windows
body: <p>Recently switched from a Mac to a PC and hit a wall with <code>bundle install</code>. </p>
  
  <p>I get an error but I'm have trouble figuring out what it means and how to fix it. I searched through the GitHub issues and other StackOverflow threads, but none of the fixes suggested help me because they're focused on Linux mostly. </p>
  
  <pre><code>Bundler found conflicting requirements for the Ruby  version:
    In Gemfile:
      Ruby  (~&gt; 2.6.5.0)
  
      pg was resolved to 0.21.0, which depends on
        Ruby  (&lt; 2.5) x64-mingw32
  
  Ruby  (&lt; 2.5), which is required by gem 'nokogiri (&gt;= 1.4.1)', is not available
  in the local ruby installation
  </code></pre>