Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialKevin Enloe
12,438 PointsInstalling SASS
I am trying to install SASS and am unable to. I have installed Ruby via the "Ruby Installer" recommended on the sass website. I have downloaded and installed Scout which was also recommended by the sass website, but when it says to install the sass gem I run into problems. When I type "gem install sass" or "sudo gem install sass" I get this error " 'gem'/'sudo' is not recognized as an internal or external command, operable program or batch file. "
What exactly am I doing wrong/missing? Please help I'm working on a Windows 7 PC.
3 Answers
David Curtis
11,301 Pointssudo only works on mac/linux. when you type in ruby -v in the command line, does it tell you a version of ruby you have installed? what about rails -v?
sorry i meant to comment!
also, are you currently in a rails project when trying to do the gem install?
James Barnett
39,199 PointsTL;DR - Use codepen or SassMeister they are the fastest way to get coding.
In my opinion installing Sass as a ruby gem is very dirty way to install a web dev toolkit. Sass was originally made by a Rails dev, so he lived in a Ruby-centric world, however Sass has grown beyond that.
A cleaner way to install Sass using an App, I'd suggest prepros.
Kevin Enloe
12,438 PointsUPDATE:
I just tried it one last time for the fun of it and it now works......Ruby finally installed and I have now gotten SASS installed..........Thank you both for your help!!!
David Curtis
11,301 Pointsgreat! persistence is key. :)
Kevin Enloe
12,438 PointsKevin Enloe
12,438 PointsThank you, but when I tried both "ruby -v" and "rails -v" I got the same response error as with "gem" and "sudo". I guess this means that Ruby is not installed on my computer.....ugh. I tried the Ruby Installer again which was suggested on the SASS website and then tried both "ruby -v" and "rails -v" and I got the same errors. I was wanting to learn SASS so I can use it with Bootstrap, plus I'm trying to do the SASS deep dive.