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 Sass Basics (retired) Getting Started with Sass Installing and Using Sass

Problem with Sass downloading on Mac

I downloaded the Sass through command line like the one of videos. However, when I type the line, Desktop$ sass test.scss An error message pops up and says Errno::ENOENT: No such file or directory - test.scss Use --trace for backtrace.

But if I do the command to transfer scss file to css, it somehow worked. Is there anyone willing to help troubleshooting??

2 Answers

From what you're saying I am guessing you already have sass installed. The file test.scss is a place holder here. Create the .scss file you want to work in and then make sure you're in the correct directory. cd desktop/test here I created a test folder that holds my scss and css files. Then run sass test.scss or you can do sass --watch scss:css here you are telling it to watch for changes in the scss files and compile them to their respective css files.

Hope this helps.

thank you, Ali! I guess I misunderstood the location of the scss files in the laptop. Finally worked :))

Adam Moore
Adam Moore
21,956 Points

You have to already have the "test.scss" file created in order for that to work. When you type, "sass test.scss," it doesn't create the file, it prints it to the console screen.

Try creating a file using ".scss" extension on your desktop, then typing in that same command with your ".scss" file name, and I bet that'll take care of it for you. Also, trying writing something in the ".scss" file when you create it, just something small, so that you can see if it prints it to the screen when you type the command into the console.