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

Phil White
PLUS
Phil White
Courses Plus Student 9,519 Points

Struggling to set up Sass....

Hi everyone,

I'm trying to set up sass on windows and got to the stage where you put Desktop$ sass test.scss in the command prompt but when i do that it comes up with

'desktop$' is not a recognized as an internal or external command, operable program or batch file.

or when i just put sass test.scss i get this error message

Errno::ENOENT: No such file or directory - test.scss use --trace to backtrace.

Where am i going wrong?

3 Answers

When i use sass for a project i create two files:

first file name: main.scss << this is the one you are gonna use with sass

second file name: main.css << this is the file where first file changes apply

after creating those 2 files, i go to windows cmd console(or ''Start command prompt with ruby'') and then i use the commands to go where the 2 files above are.

Then i press in the console: sass --watch main:scss:main.css

and that's it

Phil White
Phil White
Courses Plus Student 9,519 Points

Ok so i have put test.scss on my desktop, what command do i use to find the file?

is test.scss on the same directory as "your-file.css", if so, just type in console: sass --watch test.scss:"yourfile.css"

Make sure that the console is on the same directory with test.scss and "your-file.css"

you can also type:sass --watch .

Phil White
PLUS
Phil White
Courses Plus Student 9,519 Points

Now when i do what you said on the first line i get

Sass is watching for changes. Press ctrl-c to stop. error No such file or directory - test.scss errno::ENOENT: No such file or directory - Use --trace for backtrace.

What did you mean by console? sorry never done any of this before.

thanks for your help by the way

Daniel Jorda
Daniel Jorda
10,898 Points

I am having the same issue as you Phil. There is no way I can run Sass, it is very discouraging and the course does not cover the installation properly. Anyone can help?