Startup error: ENOENT scanning non-existent managed skills directory
Resolved 💬 1 comment Opened Jun 4, 2026 by PjotrPjotr Closed Jul 10, 2026
Description
On startup, Claude Code logs an error when trying to scan a managed skills directory that doesn't exist:
[ERROR] Error: Error: ENOENT: no such file or directory, scandir '/Library/Application Support/ClaudeCode/.claude/skills'
Environment
- OS: macOS (Darwin 24.6.0)
- Claude Code version: Latest (installed via npm)
Steps to Reproduce
- Start Claude Code on macOS
- Check the debug log at
~/.claude/debug/
Expected Behavior
No error should be logged for a directory that is expected to potentially not exist.
Actual Behavior
An [ERROR] level log entry is created, even though Claude Code continues to function normally.
Suggested Fix
Either:
- Check if the directory exists before attempting to scan it
- Remove the path if it's outdated/unused
- Create the directory during installation if it's meant to exist
Debug Log Context
[DEBUG] Loading skills from: managed=/Library/Application Support/ClaudeCode/.claude/skills, user=/Users/.../.claude/skills, project=[]
[ERROR] Error: Error: ENOENT: no such file or directory, scandir '/Library/Application Support/ClaudeCode/.claude/skills'
The startup continues successfully and user skills load fine - this is a non-critical error but should be cleaned up.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗