ENOENT: no such file or directory — page 3
A path Claude Code tried to open does not exist at that location.
1,200 issues · 64 open · 1,136 resolved (95%) · first seen Feb 25, 2025
First response · local
What to do now
Most likely: The operating system rejected a file or directory operation.
- Read the first path in the error and verify that it exists and belongs to the expected user.
- Check disk space, permissions, symlinks and whether another process holds the target.
- Reproduce with the smallest affected path before changing project-wide permissions.
These are conservative triage steps, not an official Anthropic fix. Use the issue and workaround evidence below before making a destructive configuration change.
Is this getting better or worse?
This class of problem is converging. 101 new reports in the last 90 days vs 314 in the 90 before — -68%. The open backlog peaked at 151 in 2026-01 and sits at 64 today.
Derived by counting each matching issue from its creation date until it closed. First-party
computation over the anthropics/claude-code tracker — the trend is not published
anywhere upstream.
Which builds report this
757 of these reports name the Claude Code build they were running, spanning 137 releases. Heaviest reporters:
- Claude Code v2.1.19
- Claude Code v2.1.17
- Claude Code v2.1.15
- Claude Code v2.1.25
- Claude Code v2.1.20
- Claude Code v2.1.22
- Claude Code v2.1.14
- Claude Code v2.1.23
Report volume, not a defect count: an issue can mention a build without that build having caused the failure. Versions come from the version string in the bug-report template, matched against real published tags.
Do these get fixed?
Median time to close is 4 days across 1,136 closures. Of the 1,136 closures with a recorded reason, 20% were closed as completed and 911 as not-planned or duplicate. The most recent completed fix landed in 2026-08.
Workarounds reported by the community
210 of these issues post a workaround someone says worked. The highest-engagement ones:
- [Bug] VS Code extension: Tool use concurrency error after Jan 23-24 update
- ✅ WORKAROUND FOUND The fix: Install VS Code extension version 2.1.17 while keeping CLI at 2.1.19 Steps: 1. In VS Code, go to Extensions 2. Find "Claude Code for VS Code" 3. Click the dropdown arrow next to Uninstall → "I…
Found in the thread of #20571 · still open - SSH remote connection fails on Windows — hardcoded /usr/bin/ssh path
- I've tried these commands as a workaround but got another error:
Found in the thread of #25659 · resolved - [BUG] VSCode ext - "Fork conversation from here" doesn't do anything
- Yes, very appreciate if you can fix it. I mean you have AI on board :)
Found in the thread of #22016 · resolved - Sub-Agents Not Detected: Missing Agents in CLI List Despite Directory Creation
- See - there are some workarounds in the comments. This issue (4623) was related to a Windows-specific issue, which has been resolved.
Found in the thread of #4623 · resolved - [Feature Request] Add native Nix/NixOS support or maintain npm installation method
- …y @manveru above... It works well for me so far but it is a work-around rather than NixOs support from Anthropic which is still lacking
Found in the thread of #20012 · still open
Excerpts are quoted from the linked issue so you can judge relevance before opening it. Threads that only ask for a workaround, or report that there is none, are excluded. These are community suggestions, not official guidance from Anthropic — read the full thread before applying one.
Matching issues 201–300
Ranked by community engagement (reactions weighted over comments). Listing the top 300 of 1,200 matches; the statistics above cover all 1,200.
- Agent Creation Fails: Agents Not Persisting After Creation
- Claude Pro API Model Unavailability: Opus 4 Not Accessible
- Bug Report
- oauth error occurs
- Missing .claude/commands in CC
- SSH remote environment: binary upload always fails with ENOENT on Synology DSM (internal-sftp virtual root ≠ shell-resolved $HOME)
- Sandbox masks nonexistent deny-listed paths as unreadable device nodes - breaks plain git whenever `extensions.worktreeConfig` is enabled
- [Bug] Unexpected high token consumption with non-Claude subagents and orchestrator models
- Cowork VM agents fail with 'Failed to create bridge sockets after 5 attempts' on Claude Desktop 1.3036.0.0 (Windows)
- API Error: 500 {"type":"error","error":{"type":"api_error","...
- API Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"},"request_id":"req_011Ca21bfeAZagxGHJbp3jmX"}
- Grep tool: spawn 'rg' ENOENT on macOS v2.1.96 (regression of #15026)
- [Bug] Anthropic API Error: Out of Extra Usage despite disabled extra usage tokens
- [BUG] MCP server args containing `~` (tilde) cause ENOENT — tilde not expanded in stdio server arguments
- [Bug] Concurrent config writes corrupt `.claude.json` on Windows startup
- [BUG] Cowork Windows 11 Pro: Persistent HcnCreateEndpoint 0x800706bf failures, ghost NAT entries, macOS diagnostics on Windows
- [BUG]
- Chrome extension: Bun panics on Windows when creating named pipe for native host
- Windows: Chrome extension never connects - cc4() returns file paths instead of named pipe path
- [Bug] IntelliJ IDEA Plugin Regression in Latest Version
- [Bug] Token count calculation exceeds context window limit (Messages: 212.8k/200k)
- [Bug] Excessive CPU usage in Claude rendering loop
- [Bug] Ctrl+C unable to interrupt long-running Bash commands
- [BUG] You've hit your limit · resets 9:30pm (Asia/Calcutta)
- [Windows Bug] TypeScript LSP Plugin fails with ENOENT - spawn without shell:true
- [BUG] CPU performance issue with long running processes
- [Bug] Anthropic API Error: Cannot modify thinking blocks in compact operation
- Invalid JSON Request: Malformed Surrogate Character in API Payload
- Promise Timeout Error in Claude Code CLI Execution
- Terminal Uncontrolled Pagination Animation Causing UI Freeze
- Command Discovery Failure: Custom Commands and Autocomplete Not Working
- [Bug] Session transcript persistence silently disabled by server-side gate
- tmux/psmux auto-detection disables session transcript persistence — .jsonl never written
- Plugin MCP relative headersHelper resolved against session CWD, not plugin root
- Hooks fail with "posix_spawn '/bin/sh' ENOENT" when the session cwd is deleted (worktree cleanup); spawn should fall back to an existing cwd
- [BUG] Plugin sensitive userConfig not persisted to keychain/credentials.json/settings.json — values lost on Claude Code restart
- [BUG] `claude agents` does not use `claude` binary in path, but rather tries to identify path
- [BUG] Edit tool progressively fails on WSL2 9p mounts (statx ENOENT on existing files)
- [BUG] Sandbox bwrap fails when ~/.nix-profile exists as a symlink to a directory
- [BUG] Windows: ENOENT mkdir 'E:\claude-tmp\...\tasks' — all Bash tool calls fail
- [Bug] File descriptor leak causes ENOENT on subprocess spawn, "directory no longer exists" on Bash cwd
- [Bug] Anthropic API Error: Persistent 429 Rate Limit Responses Consuming Credits
- [Bug] Claude hangs without token usage during extended thinking phases
- Read tool fails with ENOENT on file paths containing smart apostrophe (U+2019)
- [BUG] When opening a remote GitHub repository in VS Code, Claude Code throws the following system error:
- Stop hooks fail with ENOENT for /bin/sh on macOS (posix_spawn)
- [Bug] Anthropic API Error: Overloaded
- [Feature Request] Add voice response output for voice mode interactions
- LSP tool fails to spawn typescript-language-server on Windows (missing .cmd extension)
- [Bug Report: Claude Code session caused significant time loss
- VS Code extension: Past conversations dropdown broken due to cached rejected promise in B3.refresh()
- /bin/sh ENOENT: Bash tool silently breaks mid-session
- [Bug] Session language resets to English after compression
- [BUG] Cowork VM never creates on Windows — connection timeout + macOS diagnostics running on Windows
- [Bug] Image paste fails in Korean input mode, only works in English mode
- [BUG] Claude in Chrome MCP server cannot connect to native messaging host on Windows - getSocketPaths missing named pipe path
- [BUG] Marketplace add fails - cleanup deletes cloned directory before rename can complete
- [Bug] USB Serial Listener Freezes UI on Startup
- [Bug] Plugin menu closes when pressing 'n' key, blocking searches starting with 'n'
- [Bug] High CPU usage and unresponsiveness in iTerm2 after extended prompts
- You've hit your limit · resets Jan 29 at 8pm (America/New_York)
- [BUG] Stop hooks fail with 'spawn /bin/sh ENOENT' on session end
- [Feature Request] Add keyboard shortcut to copy last message output to clipboard
- [Bug] Anthropic API Error: Cannot modify thinking blocks in assistant messages
- [Bug] [P2?] Ctrl+G hotkey prints raw escape sequences instead of opening VS Code editor
- [Bug] Hallucination: False User Confirmation from Task Notification and Compaction Events - why are <task-notification>s user content??
- Task tool subagents use stale ripgrep path after native installer migration
- [Bug] [Regression] Background commands don't notify Claude Code on completion
- Claude in Chrome MCP bridge not connecting when Claude.app is also installed
- [Bug] Chrome profile selection inconsistent and fails to detect open instances
- [Bug] Agent stuck in loading state after delivering response
- [Feature Request] Add customizable escape sequence for vim mode, ideally a vimrc
- [Feature Request] /chrome sessions should support independent window and tab connections
- [Bug] Bun runtime crash with illegal instruction on macOS 14.6.1
- [Bug] Claude Code hangs during task execution with no progress indication
- [Bug] Private marketplace plugins not available in slash commands across repos
- [Bug] `/stats` command executes `/status` instead due to MISTAKEN command prefix matching
- [Bug] Graph loop stop hook fails on Windows PowerShell
- [BUG] Session rename fails with ENOENT error: "no such file or directory, open 'n/a'"
- [BUG] Path construction bug on Windows with UNC paths - prevents access to conversation history
- [BUG] vscode extension on WSL fail to start
- [BUG] can't use claude is remote vscode
- [Bug] Anthropic API Error: Invalid image media type when pasting file path
- [Bug] Unexpected High Resource Consumption from Plugin Disabling Commands
- Claude API Usage Limit Exceeded, Blocking Code Generation
- [Bug] Persistent Permission Prompts Ignore Previously Granted Access
- Invalid JSON Serialization Error in API Request Body
- JSON Serialization Failure: Unicode Surrogate Pair Error in API Requests
- [BUG] Cross-project hook inheritance executes sibling project hooks inappropriately
- PDF Processing: Persistent API Error After Explicit Instruction to Ignore File
- File Attachment Functionality Broken in Claude Code CLI
- Agent Tagging Incorrectly Uses @ Symbol for Agents Instead of File References
- Lock file error and agent timeout issues during complex architectural migration
- Anthropic API Overloaded Error During Query Execution
- Multiline Input Handling Broken in CLI Prompt
- macOS: Arabic and Hebrew paths have swapped characters, causing files not to be found
- Infinite Token Generation Without Task Completion
- Dot-Prefixed Incorrectly Ignored During File Search and Mention
- Anthropic API Request Timeout or No Response from Claude
- Agent Message Parsing Failure in Conversation Flow