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 Getting Started with Sass Compiling Sass to CSS

sass input.scss output.css error

I have installed sass using sudo gem install sass. That worked. Then I typed sass input.scss output.css and got this error:

Errno::ENOENT: No such file or directory - input.scss

3 Answers

David Kanwisher
David Kanwisher
9,751 Points

When typing "sass input.scss output.css", you are required to navigate to the directory where your input.scss file is.

Windows:
https://www.digitalcitizen.life/command-prompt-how-use-basic-commands
Mac:
https://www.macworld.com/article/2042378/master-the-command-line-navigating-files-and-folders.html

If you know you are in the correct directory, you may want to verify that you file name matches the first sass parameter

"sass yourFileName.scss whatEverYouWishToCallIt.css" The first param expects your input file that A. exists in the current directory and B. Has the same name The second param will create an output file with the name that you give it.

Dave StSomeWhere
Dave StSomeWhere
19,870 Points

You probably either have to navigate to the directory where input.scss is located or provide the path.

Thank you for your replies! Very much appreciated. I figured it out.