10/20/2015 By emehany
Sass already comes with a lot of power, from nesting html tags to generating mixins, and many more powerful feutures that speed up development of highly scalable cascading stylesheets.
To start to use sass, compass ecc, Ruby must be installed. Osx ships with Ruby out of the box, other operating systems have several options to install like ruby installer. Finally, comes Ruby Bundler to easly build and generate templates for individual projects.
When you try this
sudo gem install sass
You may get this error:
ERROR: While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/sass
That is because we need to specify the directory where binary files are located like so:
sudo gem install -n /usr/local/bin sass
There are many libraries and mixins out there. Here are some of the most famous ones and the commands to install them with Gem:
sudo gem install -n /usr/local/bin bourbon
sudo gem install -n /usr/local/bin neat
sudo gem install -n /usr/local/bin compass
sudo gem install -n /usr/local/bin sass
sudo gem install -n /usr/local/bin bundler
sudo gem install -n /usr/local/bin refills
Gem install command line reference
Login to Comment