我已经在Windows 10上安装了Ruby,版本为2.7.1p83。
根据各种网站的建议,我使用gem install rails
安装导轨。但它显示:
ERROR: Error installing rails:
The last version of nokogiri (>= 1.6) to support your Ruby & RubyGems was 1.10.9. Try installing it with `gem install nokogiri -v 1.10.9` and then running the current command again
nokogiri requires Ruby version >= 2.3, < 2.7.dev. The current ruby version is 2.7.1.83.
现在当我写gem install nokogiri
时显示
ERROR: Error installing nokogiri:
The last version of nokogiri (>= 0) to support your Ruby & RubyGems was 1.10.9. Try installing it with `gem install nokogiri -v 1.10.9`
nokogiri requires Ruby version >= 2.3, < 2.7.dev. The current ruby version is 2.7.1.83.
可能是什么原因,如何解决?
现在使用即将发布的候选版本:v1.11.0.rc2
gem inst nokogiri --pre
或您的Gemfile中
gem 'nokogiri', '>= v1.11.0.rc2'