Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting "isn't a Gem::Specification (NilClass instead)" when running after gem --version

Tags:

ruby

rubygems

$ gem --version

[/home/rohit/.rvm/gems/ruby-1.9.3-p125@qnrDashboard/specifications/net-ssh-2.5.2.gemspec] isn't a Gem::Specification (NilClass instead).
[/home/rohit/.rvm/gems/ruby-1.9.3-p125@qnrDashboard/specifications/net-sftp-2.0.5.gemspec] isn't a Gem::Specification (NilClass instead).
[/home/rohit/.rvm/gems/ruby-1.9.3-p125@qnrDashboard/specifications/net-ssh-gateway-1.1.0.gemspec] isn't a Gem::Specification (NilClass instead).
[/home/rohit/.rvm/gems/ruby-1.9.3-p125@qnrDashboard/specifications/net-scp-1.0.4.gemspec] isn't a Gem::Specification (NilClass instead).

Using RVM 1.12.3, RubyGems 1.8.22, & Ruby 1.9.3.

Why I am getting this error?

like image 376
rohitkadam19 Avatar asked Jul 21 '12 15:07

rohitkadam19


1 Answers

I had the same problem. the problem i think is with cache of the gems. try the steps in this link might solve the problem.

like image 85
bharath Avatar answered Sep 21 '22 11:09

bharath