Can't add sources with gem

后端 未结 1 1143
走了就别回头了
走了就别回头了 2021-02-06 06:27

I\'m trying to add http://rubygems.org/ in my sources because I can\'t use \'gem install NAME\' (this error : Could not find a valid gem \'dashing\' (>= 0) in any repository).

相关标签:
1条回答
  • 2021-02-06 07:11

    In such cases, I directly make changes to my Gem Config file. Here is an updated version of ~/.gemrc:

    ---
    :backtrace: false
    :bulk_threshold: 1000
    :sources:
    - http://rubygems.org
    :update_sources: true
    :verbose: true
    

    Here's how to verify:

    $ gem sources
    http://rubygems.org/
    
    0 讨论(0)
提交回复
热议问题