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

Error when trying to write "sass test.scss" on mac

Hello everyone.

I have run into a problem.

In the video, we are told to make a file called test.scss, and add some simple css. p { color: blue; }

Done, and saved it. But when i write sass test.scss in terminal, like we are told in the video, i get the following error: Errno::ENOENT: No such file or directory - test.scss Use --trace for backtrace.

Hope someone can help, and thank you!

While in the terminal are you in the proper directory?

Thanks for the reply. I am sorry if this sounds stupid, but it is my first time in terminal. How to i check this Sean?

Let's say you created the test.scss file and it's located on your desktop (thats usually where I'll put my test projects). When you open your terminal, by default you are in your root directory. On my mac the prompt looks like "Seans-MacBook-Air:~" the ~ symbol tells me that I'm in my root and that is as "deep" as one can go.

To navigate to your desktop from your root, you can try entering "cd desktop" (do not use the quotation marks) into the command line. Doing this will change directory (or cd) to your desktop. Same thing goes if your test.scss file is in a folder named "test-project" located on your desktop, starting from your root directory you would enter "cd desktop/test-project" into your command line.

Once your terminal is in the same directory as your test.scss file, everything should be working properly if you're following along with the video.

I'm still a little new to navigating the console as well. I took treehouse's Console Basics course and it really helped me. I highly recommend it. I hope this helps!

-Sean

Thank you Sean, this worked perfectly. You should write it as an answer so that I can mark it as the best answer.

Ok Rune. I'll do that thanks :)

5 Answers

Let's say you created the test.scss file and it's located on your desktop (thats usually where I'll put my test projects). When you open your terminal, by default you are in your root directory. On my mac the prompt looks like "Seans-MacBook-Air:~" the ~ symbol tells me that I'm in my root and that is as "deep" as one can go.

To navigate to your desktop from your root, you can try entering "cd desktop" (do not use the quotation marks) into the command line. Doing this will change directory (or cd) to your desktop. Same thing goes if your test.scss file is in a folder named "test-project" located on your desktop, starting from your root directory you would enter "cd desktop/test-project" into your command line.

Once your terminal is in the same directory as your test.scss file, everything should be working properly if you're following along with the video.

I'm still a little new to navigating the console as well. I took treehouse's Console Basics course and it really helped me. I highly recommend it. I hope this helps!

-Sean

I highly recommend that you go through the Console Foundations course.

An easy way to get into the right directory would be to type the letters cd followed by a space, then drag and drop your folder into the terminal (which will put its path in there).

Thanks Ricardo, I will take a look at that!

What operating system are you using?

I am using Mac OS

Cool. Looks like Sean helped you out. There are some differences between the OS's command line which is why I asked, as far as which commands are available. Windows is the most difficult to work with. Fortunately you get to avoid that headache.

you can use https://prepros.io/downloads or https://mhs.github.io/scout-app/ to work with sass or less... is easy, fast, and you dont need to know all that type commands... and is working always!

:-)good luck!

thank you Sean :)