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 trialTyler Haas
5,882 PointsSass overwrite problem
This is what I get when I type in sass --watch . : Tylers-Mac-mini:~ tylerhaas$ sass --watch .
Sass is watching for changes. Press Ctrl-C to stop. write ./test.css LoadError: cannot load such file -- rb-fsevent Use --trace for backtrace. Tylers-Mac-mini:~ tylerhaas$
This makes it so that the css file doesn't update with my code. help please!
9 Answers
Magnus Hovland
5,657 PointsIf I understand correctly it seems that it is trying to require "rb-fsevent". I'm not sure if this will help, but try running
gem install rb-fsevent
And then run the sass watch command again when the gem has finished installing. Hopefully that will take care of it. :)
-M
Chris Scott
7,673 Pointscould be a permissions error have you tried
"sudo sass --watch"
Tyler Haas
5,882 Pointsyes I should clarify that instead of overwrite ./test.css it says write ./test.css so I can update the css file with my code it just wont do it automatically
Tyler Haas
5,882 Pointsthat worked thank you so much!
leanneheller
293 PointsThanks, Magnus - I ran into this as well, and your fix took care of this!
Magnus Hovland
5,657 PointsGlad I could help :)
Y K
3,390 PointsSo when I tried gem install rb-fsevent
command, I got following.
Yamatos-MacBook-Air:Desktop yamatokaneko$ gem install rb-fsevent
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
Yamatos-MacBook-Air:Desktop yamatokaneko$
Anybody knows how to solve this and install it correctly?
leanneheller
293 PointsI think I had to precede some of my install commands with sudo, and then enter my password.
Guillaume Grassiant
4,008 PointsHey! Same thing here. I get the "You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory" message when trying to install rb-fsevent. Any news on this front?
Laura Cressman
12,548 PointsLaura Cressman
12,548 PointsHi Magnus, I'm having this issue as well, but for some reason this fix doesn't work for me. Any other suggestions? Thanks, Laura
Magnus Hovland
5,657 PointsMagnus Hovland
5,657 PointsHi Laura, Do you get the same error when running sass --watch . after installing rb-fsevent as you did before installing it? Did rb-fsevent install correctly? Copy & paste your error here in case it's a little different from the one Tyler got. :)
-M
Laura Cressman
12,548 PointsLaura Cressman
12,548 PointsThanks Magnus-here's what I got :)
lauracrsmansmbp:~ lauracressman$ sudo gem install rb-fsevent Successfully installed rb-fsevent-0.9.4 Parsing documentation for rb-fsevent-0.9.4 1 gem installed lauracrsmansmbp:~ lauracressman$ cd Documents lauracrsmansmbp:Documents lauracressman$ sass test.scss p { color: blue; width: 40px; height: 10px; font-size: 1.2em; } lauracrsmansmbp:Documents lauracressman$ sass --watch .
I don't get overwrite, which I think is the issue.