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 trialAoi Asano
7,477 PointsProblem 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
Ali M Malik
33,293 PointsFrom 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.
Adam Moore
21,956 PointsYou 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.
Aoi Asano
7,477 PointsAoi Asano
7,477 Pointsthank you, Ali! I guess I misunderstood the location of the scss files in the laptop. Finally worked :))