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 trialAlexandra Klein
156 PointsProblems getting Sass to work.
I believe I installed Sass correctly and created a test.scss and saved it to my desktop. However, when I type "sass test.scss" into the command line, I get:
No such file or directory - test.scss Use --trace for backtrace.
What am I doing wrong? I am having a lot of trouble getting Sass to work on my computer. Please help?
Thanks.
2 Answers
Robert Richey
Courses Plus Student 16,352 PointsHi Alexandra,
Make sure you're in the same directory as the scss file. Also, you need to specify an output to see any changes - to compile from scss to css.
// sass [input]:[output]
sass test.scss:test.css
Alexandra Klein
156 PointsHi, Robert.
Thanks for your prompt response. I am new to the command line. Would you be willing to walk me through this more specifically?
Robert Richey
Courses Plus Student 16,352 PointsYou mentioned that you typed sass test.scss
into the command line. What directory were you in? What directory is test.scss in? Those should be the same - they can be different once you're familiar with relative paths. So, if test.scss is on your desktop, then when you open your command line, navigate to your desktop folder. Then run sass test.scss:test.css