Windows 7 64-bit: Could not find a valid gem 'compass' (>= 0), here is why: Unable to download data from https://rubygems.org/

后端 未结 4 1243
再見小時候
再見小時候 2020-12-13 07:02

I cannot install compass. I want to install compass on my project so when I try to update, I get this:

c:\\wamp\\www\\danjasnowski.com>gem install com

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-13 08:00

    Try upgrading your SSL certificates.

    1. Download http://curl.haxx.se/ca/cacert.pem

    2. Save this file anywhere you want, such as:

      C:\cacert.pem
      
    3. On the command line, tell Ruby where to find the cert file, such as:

      set SSL_CERT_FILE=C:\cacert.pem
      
    4. Try again.

      gem install compass
      
    5. If it works, you can make the cert file permanent by adding it in your control panel.

    Credit and more info: https://gist.github.com/fnichol/867550

提交回复
热议问题