8
$ 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。

为什么我收到此错误?

4

2 回答 2

4

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.

于 2012-10-16T05:33:10.783 回答
0

在窗户上,

cd C:\Ruby193\lib\ruby\gems\1.9.1\gems
rm -rf ./*
cd ..\specifications
rm -rf /*

那么最后,

gem install rails

在 Windows 确定存在错误并以漂亮的蓝屏重新启动后,此问题开始发生。

于 2015-01-13T11:06:55.640 回答