ruby – 在gem –version之后运行时获取“不是Gem :: Specification(NilClass代替)”

前端之家收集整理的这篇文章主要介绍了ruby – 在gem –version之后运行时获取“不是Gem :: Specification(NilClass代替)”前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
$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).
@H_404_4@使用RVM 1.12.3,RubyGems 1.8.22,& Ruby 1.9.3.

@H_404_4@为什么我收到此错误

解决方法

我有同样的问题.我认为问题在于宝石的缓存.尝试这个 link中的步骤可能会解决问题.

猜你在找的Ruby相关文章