【发布时间】:2020-04-27 11:46:43
【问题描述】:
我在我的 Windows 10 上安装了 Ruby,版本为 2.7.1p83。
根据各种网站的建议,我使用gem install rails 安装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.
可能的原因是什么?如何排除故障?
【问题讨论】:
标签: ruby-on-rails ruby windows installation nokogiri