0

I am trying to install sass and I tried ruby installer. I am getting the error as follow.Please anyone help.

C:\Ruby23-x64>gem install sass

ERROR: Could not find a valid gem 'sass' (>= 0), here is why: Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)

Saurabh
  • 71,488
  • 40
  • 181
  • 244
pallavidestiny22
  • 335
  • 1
  • 8
  • 19
  • Which version of ruby you are using? – Saurabh Dec 04 '16 at 10:00
  • Possible duplicate of [SSL Error When installing rubygems, Unable to pull data from 'https://rubygems.org/](http://stackoverflow.com/questions/19150017/ssl-error-when-installing-rubygems-unable-to-pull-data-from-https-rubygems-o) – Holger Just Dec 04 '16 at 16:07

1 Answers1

1

gem install by default uses https://rubygems.org/ as it's source for gems, but you can specify the source using --source option and give a non-SSL source to install like following:

gem install sass --source http://rubygems.org/
Saurabh
  • 71,488
  • 40
  • 181
  • 244
  • 1
    After installing and watching for the scss file i get an error – pallavidestiny22 Dec 04 '16 at 10:56
  • 1
    As par SO guidelines, you can ask a fresh question, with details of the error. – Saurabh Dec 04 '16 at 11:02
  • 1
    This is quite bad and dangerous advice! Rubygems uses the secure https transport by default for a reason, namely to ensure that the downloaded gems are not tampered with on the way from rubygems.org to the client. A much better advice would be to fix the certificates on the client. – Holger Just Dec 04 '16 at 16:07
  • if the above solution doesn't work as expected, sometimes updating to the latest ruby package does fix it. – Peter Jun 05 '19 at 14:41