Install Sass on Mac
by John Vincent
Posted on February 18, 2017
This stuff ends up sprayed everywhere, so let's create a reference document.
Sass
Installation
This is complicated by the need for Jekyll to handle auto compile of sass files.
Without this requirement the task is easy
sudo npm install -g sassSass Install describes others ways to install Sass.
I installed a long time ago and so I used a technique I doubt I would use today.
Install Sass using Ruby
Install ruby
brew update
brew install rubyCheck version
ruby -vInstall Sass
sudo gem install sassCheck version
sass -vUpdate Sass
sudo gem update sassUninstall Sass
List gems
gem listsudo gem uninstall sass-listen
sudo gem uninstall sassUse Sass Compiler
I have a convention of creating folders scss and css
Create file sass-compiler
sass --watch scss:css --line-numbers --style expandedAny changes to scss files will be automatically compiled into css files.