[英]Error while installing Rails gem on Windows
I'm trying to install Ruby on Rails on Windows.我正在尝试在 Windows 上安装 Ruby on Rails。 After successfully installing Ruby, when I run
ruby -v
, it returns ruby 2.4.4
as expected.成功安装 Ruby 后,当我运行
ruby -v
,它会按预期返回ruby 2.4.4
。 The gem
application is installed and is version 2.77. gem
应用程序已安装,版本为 2.77。 But when I try executing the command:但是当我尝试执行命令时:
gem install rails
it gives the following error:它给出了以下错误:
C:\>gem install rails
ERROR: Loading command: install (ArgumentError)
unknown encoding name - CP720
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
How do I fix this error so I can install Ruby on Rails on Windows?如何修复此错误以便我可以在 Windows 上安装 Ruby on Rails?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.