简体   繁体   中英

gem install does not install rails

I have this version of ruby:

ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x64-mingw32]

How do I solve this error.

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.0.0.

Currently (04-02-2020) Ruby 2.7.0 on Windows is only supported in the latest release candidate of nokogiri, see their git repo .

You can (install pre-releases)[ https://guides.rubygems.org/patterns/#prerelease-gems] with the --pre flag of gem : gem install nokogiri --pre

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM