gem install cannot download from rubygems.org

后端 未结 7 2127
清酒与你
清酒与你 2021-01-05 03:12

When I type

gem install sass

I get the following error message

C:>gem install compass ERROR: Could not

7条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-05 03:41

    TL;DR Apply the official fix:

    1. Download https://rubygems.org/downloads/rubygems-update-2.6.7.gem
    2. Run:

      gem install --local rubygems-update-2.6.7.gem
      update_rubygems --no-ri --no-rdoc
      gem uninstall rubygems-update -x
      

    Long version

    See http://guides.rubygems.org/ssl-certificate-update/ .

    Basically it adds GlobalSignRootCA. Very easy to apply, unfortunately hard to google though.

提交回复
热议问题