gem install error undefined method 'size' for nil:NilClass '

使用ruby的gem 安装gem的时候 出现如下错误:
invalid gem: package is corrupt, exception while verifying: undefined method `size' for nil:NilClass (NoMethodError) in ~/.rvm/gems/ruby-2.3.1/cache/ffi-1.9.14.gem
此时,只要删除 cache中的gem即可

error.png

你可能感兴趣的:(gem install error undefined method 'size' for nil:NilClass ')