gem install sass not working on Windows

Posted on: July 22nd, 2015

Oh goodness. It seems like every time I slink away from my Mac back to developing on my PC I spend more time troubleshooting why I can’t get things to install than I do actually developing. Now, is that on me? Possibly. But, dear reader, I am quite good at figuring out what’s wrong. Especially when the answer is on the first Stack Overflow answer I find.

I tried running a ‘grunt watch’ task only to realize I had not installed SASS yet on my PC. So, simple ‘gem install sass’ returned:

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)

Cool, now I’m the one that’s insecure. Cheap shot Ruby. Anyway, I found a Stack Overflow post with the answer to my problems.

gem source -a http://rubygems.org/

You will be asked if you are insecure want to add this insecure source. Say yes, and behold the many gems now at your finger tips. Try it once more:

gem install sass
bingo1

That’s right, that’s a bingo. Enjoy the rest of you sassy existence on your PC.

previous post: Top 15 Albums For Maximum Coding Efficiency Part 3.0 next post: That One Sports Show Podcast