Codekit file permission issues (Read-only file system @ dir_s_mkdir - /.sass-cache)

痞子三分冷 提交于 2021-02-10 12:38:04

问题


Getting the following error:

Compiling failed with this error: Errno::EROFS on line ["239"] of /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/fileutils.rb: Read-only file system @ dir_s_mkdir - /.sass-cache
Run with --trace to see the full backtrace

Really painful, any help would be appreciated.

Happened after my update to Mac OS Catalina. Currently on 10.15.1 (19B88).


回答1:


Ruby Sass is deprecated. In Codekit 3 you should use libsass compiler instead. Libsass is not available if you use Compass. If so, you can set the cache location path in the config.rb:

sass_options = { :cache_location => '/tmp/sass_cache' }




回答2:


/.sass-cache would be a Sass cache directory at the root of your file system. It should not be trying to create that directory there.

However this Ruby is getting run, it's not running with the right working directory, or needs to be passed a base path to run in.




回答3:


In Catalina, the disk root where Ruby Sass attempts to write that cache is now read-only, so it fails.

I used Bourbon instead. I also created some of the mixins that were in compass myself.



来源:https://stackoverflow.com/questions/58937978/codekit-file-permission-issues-read-only-file-system-dir-s-mkdir-sass-cac

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!