You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

MacOS Catalina更新后Codekit文件权限问题求助

Fix Codekit Compilation Failure on macOS Catalina (10.15.1)

I’ve helped several users troubleshoot this exact issue after upgrading to Catalina, so let’s break down what’s happening and how to fix it quickly:

Why This Happens

macOS Catalina enables System Integrity Protection (SIP) by default, which locks down the root directory (/) as read-only. Codekit’s default setup tries to create a Sass cache folder at /.sass-cache—a location it no longer has write permissions for, hence the Errno::EROFS read-only file system error you’re seeing.

Step-by-Step Solutions

  • Update Codekit’s Global Cache Path

    1. Open Codekit and hit Cmd+, to open Preferences.
    2. Navigate to the Languages tab, then locate the Sass/SCSS section.
    3. Find the "Cache Location" setting—swap the default root path for a writable user-level directory, like ~/Library/Caches/Codekit/Sass-Cache (this is a standard, safe spot for app caches).
    4. Save changes and restart Codekit to apply the new setting.
  • Set a Project-Specific Cache Path
    If you prefer keeping cache files tied to individual projects:

    1. Select your project in Codekit’s sidebar.
    2. Click the gear icon to open project-specific settings.
    3. Go to the Sass/SCSS section.
    4. Override the cache location to a folder inside your project (e.g., ./.sass-cache). This keeps cache files localized and avoids system-wide permission issues entirely.
  • Check for Global Sass Configuration
    If you have a .sassrc file in your home directory (~/.sassrc), open it and make sure there’s no line forcing the cache to the root. If you see something like --cache-location /.sass-cache, replace it with a writable path such as --cache-location ~/.sass-cache.

Verify the Fix

After adjusting the cache path, recompile your project in Codekit. The error should vanish immediately, as the app will now write cache files to a directory you have full access to.

内容的提问来源于stack exchange,提问作者Asaad Mahmood

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.14 08:33:43