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

Aaron HARPT
Aaron HARPT
19,845 Points

Installing Sass

I am having trouble getting Sass to work on my Mac. I can get it installed, but when I try to test a file out, it says that no such file or directory exists. Thanks

1 Answer

Steven Ventimiglia
Steven Ventimiglia
27,371 Points

Go to your command terminal and type (without quotes)

"sass -v"

. It should say something like

"Sass 3.4.13 (Selective Steve)"

.

If it does, then go to the directory that you're storing your website/css in, and type (without quotes)

"sass --watch ."

<-- keep the period in there ~ or ~

"sass --watch style.scss:style.css"

which, in this case, would use "style.scss" as the input file and would create "style.css" as the output file.

It's best to use the second example, since you should only process one of them, importing all of the other "_reset.scss, _global.scss, etc." files into it. Doing so, it should start watching that directory for changes in the main .scss files you're using instead of every file.

If you're experiencing any errors, let me know. Sass is awesome and you're gonna love it.