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

Joel Rivera
Joel Rivera
29,401 Points

Sass Terminal

Trying to work with Sass on my Macbook Pro 2011. I've installed sass using the gem install sass and it installed correctly. I created a file and called it test.scss in my text editor. when i typed sass test.scss in the terminal I got this message Errno::ENOENT: No such file or directory - test.scss Use --trace for backtrace. What am I doing wrong?

Thank you in advance.

Inside your terminal, were you in the directory where you placed that test file?

Joel Rivera
Joel Rivera
29,401 Points

Probably not. SMH. I didn't think about that. Still learning the command line. So the file is in my htdocs. What would I type in?

Thanks Jason

I'm on windows myself so I don't know if I can offer much help.

Have you completed console foundations yet? You want to cd into your htdocs directory. Then it will be able to find the file.

Alternatively, you may be able to stay in your current directory and run your command as long as you specify the path to your test file.

So something like sass path/to/test.scss where path/to/ would be the path to your test file.

1 Answer

Joel Rivera
Joel Rivera
29,401 Points

Thanks Jason. I am going to take a refresher of the console foundations. Been too long.