Can't add sources with gem

后端 未结 1 1142
走了就别回头了
走了就别回头了 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)
提交回复
热议问题