I've been having problems getting Sass working from terminal in Mac OS X Mavericks on my Macbook Pro. I'm working off a brand new clean install; reformatted my hard disk, loaded Mavericks, and first thing I went into the command line to set this up.
I did sudo gem install sass
, then created two files on my desktop, test.css and test.scss. Then, when I try watching the files, I get an error:
$ sass --watch desktop/test.scss:desktop/test.css
>>> Sass is watching for changes. Press Ctrl-C to stop.
LoadError: cannot load such file -- rb-fsevent
Use --trace for backtrace.
$
I have no idea what's going on or how to fix this, tried searching but didn't find any answers related to my problem. Sass -v
gives me Sass 3.3.2 (Maptastic Maple)
.
The command to run Sass is sass --watch input. scss output. css where 'input. scss' is your main Sass file (with all your partials imported) and 'output.
In the command line type the following: npm install sass -g . You type npm to tell the command line that you want to execute npm commands. install is the npm command that you are executing. It will download and install the indicated package(s).
Install the missing file: gem install rb-fsevent
The gem uses OS X's FSEvents API to listen for file system events including updated files (for example, your updated Sass file). As your OS has changed, it is reasonable to expect changes to how file system events are handled and therefore any gems that depend on file system behaviour.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With