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

Josef Coban
Josef Coban
7,260 Points

sass problems

Hello, I'm running on a windows PC and I have an issue with sass working properly. I installed ruby and sass as per the instructions in the sass learning block, however when I use the sass --watch. command, it doesn't recognize when I change the contents of the .scss file and doesn't overwrite the input right away, any suggestions?

3 Answers

I had an issue where the rb-fsevent wasn't installed properly. I ran this gem install --version '~> 0.9' rb-fsevent and it installed the listener and worked perfectly. I'm not sure why it didn't install it the first time, but I would check that.

Are you using the correct command prompt? You need the one title "command prompt with ruby" run a windows search and it should find it.

Also are you starting the command in the right place eg

file location is d:/development/project/css/styles.scss

then you would navigation to this folder in command then run the command to watch

sass --watch .
Josef Coban
Josef Coban
7,260 Points

Yes I believe I'm in the right directory... I just made the .scss file on my desktop. When I opened my the command prompt I used "cd" to move into the desktop. Then i typed in sass --watch . and the file shows up and it says it's waiting for changes, but when I make a change and save, it doesn't register.

Josef Coban
Josef Coban
7,260 Points

Yes, that's the command prompt that I'm using