无法运行任何与gem有关的内容

时间:2019-05-09 07:38:20

标签: rubygems

每当我尝试运行compass watch时,都会收到此消息:

Traceback (most recent call last):                                                                                                
    4: from <internal:gem_prelude>:2:in `<internal:gem_prelude>'                                                              
    3: from <internal:gem_prelude>:2:in `require'                                                                             
    2: from /usr/local/lib/ruby/site_ruby/2.5.0/rubygems.rb:1395:in `<top (required)>'                                        
    1: from /usr/local/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:54:in `require'                           /usr/local/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- rubygems/core_ext/kernel_warn (LoadError)          

我猜我的gem安装很混乱,因为即使我尝试执行gem update --system也会遇到相同的问题或任何与gem相关的命令。

有没有办法强制我的宝石更新?

0 个答案:

没有答案