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!
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
Aaron HARPT19,845 Points
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
Steven Ventimiglia27,370 Points
Go to your command terminal and type (without quotes)
. 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.