I'm on Mac OS High Sierra 10.13.2. I followed @sandeep-ranjan 's answer first, which resulted in a few more lines of output from sudo gem install sass: Fetching: rb-fsevent-0.10.2.gem (100%) Successfully installed rb-fsevent-0.10.2 Fetching: ffi-1.9.21.gem (100%) But it didn't solve the problem. Then I followed this answer and the installation worked. I would like to install compass through the terminal in mac. I installed sass. I now have Sass 3.3.0.alpha.175 (Bleeding Edge) Then I tried to install compass with sudo gem install compass It. We will go over the basics and installations of Sass for both Mac and Windows. The Basic Learning about Sass There are a few learning curves when it comes to the use and setup of Sass.
Sass (Syntactically Awesome Stylesheets) is a style sheet language which brings programming features like variables, etc. to css. It makes maintaining and modifications in css easier. The new main syntax of sass (version 3) is called scss (sassy css).
Here is quick start guide of installing and using node-sass on Linux and Mac. Note that node-sass uses LibSass, the C version of Sass.
Install Sass On Linux
Sass Install Windows
- First install node and npm using the following steps.
- Install node-sass package using npm install. For Ubuntu, you will have to use sudo.To install globally
- Check node-sass version
- Create a test scss file (test.scss) containing a variable.
- Compile test.scss to test.css
Note that the variable has been replaced by it value.