gem update --system error: no implicit conversion of nil into String

gem update --system error: no implicit conversion of nil into String

我 运行 在 windows 上,我无法使用命令

更新我的 rubygem
gem update --system

或通过手动安装 gem。我收到以下错误

ERROR:  While executing gem ... (TypeError)
    no implicit conversion of nil into String

据我所知,我在安装或更新其他 gem 时没有遇到此问题。

这是 运行 --verbose

时的完整输出

http://pasted.co/11325f4e

这是 ruby gem 安装程序系统中的错误。

修补文件 installer.rb:

替换:

if ruby_executable then
      question << existing

与:

if ruby_executable then
      question << (existing || 'an unknown executable')