‘require’: cannot load such file — ‘nokogiri\nokogiri’ (LoadError) when running `rails server`

Nokogiri doesn’t support Ruby 2.2 on Windows yet. The next release will. See https://github.com/sparklemotion/nokogiri/issues/1256

Nokogiri doesn’t support native builds (e.g. with devkit) on Windows. Instead it provides gems containing prebuilt DLLs.

There’s a discussion which you may want to join or watch on the topic of devkit build support here: https://github.com/sparklemotion/nokogiri/issues/1190

Leave a Comment