Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
How to install sass on windows?
I'm running windows, cant find any clear explanation how to install Sass on pc. I've already installed Ruby, what's next? Help, please.
Hi Yury, This is the clearest explanation I've seen. Are you familiar with the command line?
This is direct from: http://sass-lang.com/install
Before you start using Sass you will need to install Ruby. The fastest way to get Ruby on your Windows computer is to use Ruby Installer. It's a single-click installer that will get everything set up for you super fast.
Here's the quickest way we've found to start using Sass by using the command line:
1st: open your Command Prompt. On Windows press the
windows key and the
r key, type
cmd and hit
2nd: Since you have ruby:
Install Sass. Ruby uses Gems to manage its various packages of code like Sass. In your open terminal window type:
gem install sass
This will install Sass and any dependencies for you. It's pretty magical. If you get an error message then it's likely you will need to use the sudo command to install the Sass gem. It would look like:
sudo gem install sass
3rd: Double-check. You should now have Sass installed, but it never hurts to double-check. In your terminal application you can type:
It should return something like
Sass 3.4.5 (Selective Steve).
Btw, check out the Sass site, good luck! Ogechi
Dave McFarlandTreehouse Teacher
When you install Ruby using the Windows installer you need to check the "Add Ruby executables to your PATH" box. If you don't Windows won't know where Ruby is on your system and you'll get a "'gem' is not recognized as an internal or external command, operable program or batch file" error.
Whenever I write gem install sass it just gives me the message "'gem' is not recognized as an internal or external command, operable program or batch file", and when I write sudo gem install sass it gives me the same messages, but replace 'gem' with 'sudo'.
Although a dated question, it seemed unanswered. You need to make sure you are running the command line as an admin. Sudo will not work in a windows terminal. Simplest solution would be to search for cmd, and Shift/Alt/Ctrl Click on cmd and select yes at the prompt. Now you should be able to install sass with no issues.
glad to help, yury!