I’ve installed ruby and the sass gem on a Win 7 Enterprise box. I’ve had issues throughout the process, and had to download the gems and install them from local to avoid other issues.
gem install --local sass-3.1.19.gem
I’m trying sass --watch styles.sass:styles.css but I get the standard sass isn’t recognised error from the command line.
I’m really new to ruby so I could well have missed a step.
Thanks in advance
In order to run commands without specifying full path, you need to have the path to the program in you
PATHvariable.So if your program is located in
C:\Programs\rubygems\gem\sassyou’ll need to addC:\Programs\rubygems\gem\toPATH.The process of adding a folder to
PATHfor the Windows command line prompt is described here.For Windows Powershell, please check Setting Windows PowerShell path variable here on SO.