Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

Anna Petry
Anna Petry
14,474 Points

Sass in Terminal issue :: Resolved but may still be helpful!

Hi All! I had this issue and solved it before posting, but I thought I'd share my fix for future users.

I've installed Sass on my Mac and am using the Terminal to follow along with the videos.

I'm in the directory where my test files are, but I'm not able to use the --watch command and have it perform the way it does in the video. When I enter sass --watch . the new .css file is created, but there seems to be no interaction between the .scss and .css files. Immediately after I enter the command, I get this error:

Sass is watching for changes. Press Ctrl-C to stop. write ./main.css LoadError: cannot load such file -- rb-fsevent Use --trace for backtrace.

Turns out, when using Mavericks, as I am, you need to install an additional file to get the --watch feature to work. I entered

sudo gem install rb-fsevent

and -BOOM- everything is working just like in the video. (You might not need the 'sudo'.)

Hope that helps!

Anna Petry
Anna Petry
14,474 Points

Bah!! I see that this has been addressed in the forum previously. Sorry for redundant content!

James Barnett
James Barnett
39,199 Points

> Bah!! I see that this has been addressed in the forum previously. Sorry for redundant content!

Anna Petry -

Don't worry about it, there is lots of redundant content here on the forum. There are some questions I answer every day such as newbie questions about file paths. It's all about helping people get off the ground and learning to code.

Some days I wish we had an FAQ, maybe one day when the Treehouse devs aren't so busy.

1 Answer

James Ingmire
James Ingmire
11,901 Points

What a legend! Thanks very much, was just about to give up as had the same problem that the code would not update its self in the css ouput file. Will keep hold of this code.

People with Windows OP.

  1. For other peoples reference; the first line of code I put it in was

    gem install sass
    

    into the 'Start Command Shell with Ruby' then I installed the file

    gem install rb-fsevent
    

    just to be clear.

  2. Also when using the command to --watch a file i would read this if having problems

    sass ---watch 
    

    did not work for me either however this link has a way to use it which worked on my windows machine after step 1.

Thanks again,