Installing SASS on Windows

In this post, I introduced some of the powers of SASS language, and I left the rest of the exploration to you, because I didn’t really go deep yet. But first you need to install it on your system to use it of course.

In their website, they explained how to install it on Linux and MacOS, and mentioned how to install on a Windows system but i needed to figure it out because before that, I never had a relationship with Ruby. And lucky me(!), SASS uses Ruby to operate.

Let me explain what I did.

First get the latest Ruby installer here : http://rubyinstaller.org/downloads/

Second, double click and start the installation, accept the licence agreement, and on the second page, check all of the checkboxes and click Install.

When the installation finishes, open a Command Prompt window (Win+R then type “cmd” and press enter)

Then type this:

ruby -S gem install sass

and wait for the script to install SASS. (It feels like using apt-get or yum :P). when you finish installing SASS, type this:

sass --help

and if you see a list of parameters and explanations, then your SASS is ready to be used.

6 thoughts on “Installing SASS on Windows

  1. did you add the ruby path to your environment variables?

    Click Control Panel | System Properties | Environment Variables.

    Under System Variables, select Path and click EDIT.

    Add your Ruby directory to the end of the Variable Value list and click OK.

  2. I typed ruby -S gem install sass in cmd

    ‘ruby’ is not recogonized as an internal or external command
    operable program or batch file

    Please help

  3. Hi I am getting this error
    C:Ruby193bin>gem install sass-rails
    ERROR: Could not find a valid gem ‘sass-rails’ (>= 0) in any repository
    ERROR: While executing gem … (Gem::RemoteFetcher::FetchError)
    Errno::ETIMEDOUT: A connection attempt faile

Leave a Reply

Your email address will not be published. Required fields are marked *

Last.fm RPS

Follow me on Twitter

GiottoPress by Enrique Chavez

%d bloggers like this: