Error Installing rails: nokogiri requires Ruby version < 2.4, >= 2.1.0

Viewed 5319

I am trying to install rails after having installed ruby 2.4.1p111 on windows 8.1 from 'Start Command Prompt with Ruby(this is just like command prompt that got installed with ruby)'.

I use the command gem install rails and after a few seconds of pause the Title of the question is thrown as error.

I tried the command gem install nokogiri -v 1.7.1 and it throws the same error.

If I run gem list, it does not list nokogiri at all.

A possible solution I came across read. Change nokogiri version in gem Gemfile with some command gem 'nokogiri', '~> 1.6.8'. I don't know if that even applies to the version of rails I have installed. If this is the solution, how do I implement it?

How do I rectify this error and install rails?

1 Answers
Related