Nokogiri: undefined method 'size' for nil:NilClass

Created on 20 Jan 2015  路  7Comments  路  Source: sparklemotion/nokogiri

~$ gem install nokogiri
ERROR: Error installing nokogiri:
invalid gem: package is corrupt, exception while verifying: undefined method `size' for nil:NilClass (NoMethodError) in /home/yipl/.rvm/gems/ruby-2.2.0/cache/nokogiri-1.6.5.gem

Most helpful comment

remove cache nokogiri and good to go
~$ rm /home/yipl/.rvm/gems/ruby-2.2.0/cache/nokogiri-1.6.5.gem
~$ gem install nokogiri

All 7 comments

remove cache nokogiri and good to go
~$ rm /home/yipl/.rvm/gems/ruby-2.2.0/cache/nokogiri-1.6.5.gem
~$ gem install nokogiri

Thanks, it worked for me.

not worked for me

Thanks! this worked for me. Of course, I had to change the path of the cache file.

Works for me as well!

thank you very much, and i wonder how you knew that?

remove cache nokogiri and good to go
~$ rm /home/yipl/.rvm/gems/ruby-2.2.0/cache/nokogiri-1.6.5.gem
~$ gem install nokogiri

Thank this has worked for me also

Was this page helpful?
0 / 5 - 0 ratings