使用rvm,无论何时我尝试安装或更新gem(或rubygems),我都会得到同样的错误:
$ gem update --system
Updating rubygems-update
Fetching: rubygems-update-2.6.6.gem (100%)
ERROR: While executing gem ... (TypeError)
no implicit conversion of nil into String
Run Code Online (Sandbox Code Playgroud)
我的系统ruby然而,工作正常.
Wer*_*her 13
这是版本2.5.x的ruby gem安装程序中的错误.修补文件installer.rb(在我的机器上/usr/local/lib/ruby/2.3.0/rubygems/installer.rb中),如下所示:
更换:
if ruby_executable then
question << existing
Run Code Online (Sandbox Code Playgroud)
附:
if ruby_executable then
question << (existing || 'an unknown executable')
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6061 次 |
| 最近记录: |