我尝试了该gem update --system
命令,但在安装捆绑程序时我仍然面临同样的错误。
C:\Users\swapnil\Desktop\testing\behavioral_tests\backlot>gem install bundler
ERROR: While executing gem ... (NoMethodError)
undefined method `size' for nil:NilClass
我经历了这个https://github.com/bundler/bundler/issues/2372问题,但没有得到适当的解决方案。
我有一台 Win-7 的 32 位机器。
我的宝石环境是:
RubyGems Environment:
- RUBYGEMS VERSION: 2.0.3
- RUBY VERSION: 1.9.3 (2013-05-16 patchlevel 392) [java]
- INSTALLATION DIRECTORY: c:/jruby-1.7.4/lib/ruby/gems/shared
- RUBY EXECUTABLE: c:/jruby-1.7.4/bin/jruby.exe
- EXECUTABLE DIRECTORY: c:/jruby-1.7.4/bin
- RUBYGEMS PLATFORMS:
- ruby
- universal-java-1.7
- GEM PATHS:
- c:/jruby-1.7.4/lib/ruby/gems/shared
- C:/Users/swapnil/.gem/jruby/1.9
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- "install" => "--no-rdoc --no-ri --env-shebang"
- "update" => "--no-rdoc --no-ri --env-shebang"
- REMOTE SOURCES:
- https://rubygems.org/