$ 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).
使用RVM 1.12.3,RubyGems 1.8.22,& Ruby 1.9.3。
为什么我收到此错误?
答案 0 :(得分:4)
我遇到了同样的问题。我认为问题在于宝石的缓存。尝试这个link中的步骤可能会解决问题。
答案 1 :(得分:0)
在Windows上,
cd C:\Ruby193\lib\ruby\gems\1.9.1\gems
rm -rf ./*
cd ..\specifications
rm -rf /*
最后,
gem install rails
在Windows确定出现错误并重新启动时,此问题就开始发生了。