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 CSS to Sass Installing Sass and Setting up the Project The --watch Command

Stevan Lay
Stevan Lay
8,306 Points

What is the meaning of this message: Errno::ENOENT: No such file or directory @ dir_s_mkdir

When I insert the command of: sass --watch scss:css or: sass --watch scss/style.scss:css/style.css I get the following message of: Errno::ENOENT: No such file or directory @ dir_s_mkdir - .sass-cache/59a8c7b8ac3c5e5342b593249a852fb5abd17a5e

So when I go and create that folder and run the command again it gives me another message, but this time: Errno::ENOENT: No such file or directory @ rb_sysopen - .sass-cache/59a8c7b8ac3c5e5342b593249a852fb5abd17a5e/style.scssc20180612-396-nw76gf

Has this got something to do with my Ruby or SaSS installation? What seems to be the cause of all this where I cannot get the --watch command to function?

Stevan Lay
Stevan Lay
8,306 Points

After trying a few more workarounds I get this other message:

Errno::EACCES: Permission denied @ apply2files - .sass-cache/6a7c80cbc088ebe35592141119509741a36d0c0d/style.scssc

Working off Windows 10 - ruby 2.5.1p57 (2018-03-29 revision 63029) [x64-mingw32] - Ruby Sass 3.5.6

Gari Merrifield
Gari Merrifield
9,598 Points

With what you have shown, it sounds like you may have switched users, and are getting a permissions issue. A previous question along these lines with a possible answer is here : https://teamtreehouse.com/community/strand-sass-error-errnoeacces-permission-denied

2 Answers

Stevan Lay
Stevan Lay
8,306 Points

I've gone and read that thread where it suggested to delete other .sass-cache folders (which there was one) but still get the original error message of:

Errno::ENOENT: No such file or directory @ dir_s_mkdir - .sass-cache/6a7c80cbc088ebe35592141119509741a36d0c0d

Stevan Lay
Stevan Lay
8,306 Points

I've also gone and renamed: 329463e7f8addc461c74a2afa2629a03cb57e975 (original project sass-cache folder) to 6a7c80cbc088ebe35592141119509741a36d0c0d and it's still returning me the following error message as stated before even after deleting all other sass-cache folders as mentioned from the other threads: Errno::EACCES: Permission denied @ apply2files - .sass-cache/6a7c80cbc088ebe35592141119509741a36d0c0d/style.scssc

Gari Merrifield
Gari Merrifield
9,598 Points

you may want to try this thread then : http://www.mindscapehq.com/forums/thread/2842100

and this one, they both seem to come to the same conclusion : https://github.com/Compass/compass/issues/1791

check the bottom of both threads.

it sounds like a possibility of two issues, one being the length of the path being too long, the other that you have to escape slashes in the config on directory names. Best of luck with it.