ENOENT: no such file or directory
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 315 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 1–100
Ranked by community engagement (reactions weighted over comments). Listing the top 300 of 1,200 matches; the statistics above cover all 1,200.
- [Bug] VS Code extension: Tool use concurrency error after Jan 23-24 update
- SSH remote connection fails on Windows — hardcoded /usr/bin/ssh path
- [BUG] VSCode ext - "Fork conversation from here" doesn't do anything
- [Bug] EnterWorktree creates worktree from default branch instead of HEAD
- [Bug] Anthropic API Error: Internal Server Error (500)
- Sub-Agents Not Detected: Missing Agents in CLI List Despite Directory Creation
- [Feature Request] Add native Nix/NixOS support or maintain npm installation method
- [Bug] Anthropic API Error: Internal server error (500)
- [BUG] Error installing VS Code extension: 1: ENOENT Please restart your IDE and try again.
- typescript-lsp plugin fails on Windows: spawn ENOENT for npm global binaries
- [BUG] Claude Code MCP Server OAuth authentication doesn't work in SSH remote sessions
- @anthropic-ai/claude-code SDK fails with "spawn node ENOENT" in Docker containers despite working CLI
- Windows: pyright-lsp plugin fails with ENOENT - cannot spawn .cmd files
- Image Processing Failure: API Rejects Unrelated Context Image
- [Bug] "Unchanged since last read" error when reading file previously accessed in reverted conversation state
- [Bug] Claude Code hangs unresponsively on macOS M1, requires terminal force-close
- API Error: 500
- [Bug] Anthropic API Error: Internal server error (500)
- API Error: 401 {"type":"error","error":{"type":"authenticati...
- [Bug] Anthropic API Error: Invalid message format with thinking blocks
- API Request Failure: Unexpected Usage Policy Violation Error
- Claude-in-Chrome Windows & WSL working fixes
- Anthropic API: Unexpected Opus Usage Limit Warnings on Pro Plan
- [BUG] Claude Code - LSP Tool Returns Empty Results Despite Server Responding Correctly (Windows)
- Thread rename fails with ENOENT error: file path resolves to 'n/a'
- getting error 500
- [BUG] Cowork Windows - CSP blocks a-api.anthropic.com, VM starts but API unreachable (Win 11 25H2)
- [Bug] Anthropic API Error: Internal Server Error (500)
- Image Dimension Exceeds Max Size in Multi-Image API Request
- Auto-update breaks @file_path functionality, displays only subagent options
- [Bug] Inconsistent usage percentage display between /usage page and CLI
- [Feature Request] Allow Ctrl+B passthrough for readline cursor navigation
- Anthropic API Overloaded: 500 Error on Simple Request
- Cowork VM fails on Windows 11 Home: wrong DNS config, missing sessiondata.vhdx, no NAT
- [Feature Request] Multi-account/profile support with CLI flags
- "Claude Code Extension Not Detected in VSCode Terminal"
- [BUG] Hooks fail with posix_spawn '/bin/sh' ENOENT due to sandbox restrictions
- [RESOLVED] Anthropic API Overloaded Error: Repeated 529 Status Code Retry
- Unicode Input Handling Fails for Vietnamese Characters
- [Bug] Anthropic API Error: Assistant message thinking block must be first
- [BUG] Windows: Claude Code 2.0.65 fails with ENOENT error due to colons in MCP log directory paths
- [BUG] crashes with `code: "ECOMPROMISED"`
- File Autocomplete Broken: '@' Trigger Fails on Windows
- API Error: 401
- [BUG] Past Conversations empty on Windows with mapped network drives (realpath resolves to UNC path)
- [BUG] VSCode Extension fails to load with ServiceWorker error when ~/.claude/projects folder doesn't exist
- Invalid Assistant Message Configuration During Compaction with Disabled Thinking
- [Bug] Anthropic API Error: Internal Server Error (500)
- [Bug] Anthropic API Error: Invalid message structure with thinking blocks
- [BUG] Claude Code v2.1.17 exits immediately on WSL1 - regression from working state
- Incorrect File Path Resolution The issue appears to be with incorrect file path resolution. The developer is trying to access a file, but using inconsistent or incorrect relative paths. The recommended approach is to: 1. Use a consistent, project-relativ
- [BUG] Hard crash at startup on WSL2 when binfmt_misc has no WSLInterop entry (ENOEXEC spawning reg.exe)
- [Bug] Anthropic API Error: Internal Server Error (500)
- [BUG] Claude Desktop sessions lost on restart — claude-code-sessions directory never created
- Here is the error message: API Error: 401...
- Cannot interact with Claude Code interface on Windows
- [Bug] Claude ignores plan mode and continues executing despite acknowledgment
- [BUG] Claude Code hangs on startup / auth fails with "EEXIST: file already exists, mkdir 'C:\Users\<username>"
- [BUG] [Cowork] Windows: sessiondata.vhdx not created + network diagnostics uses macOS commands
- 500 error with all actions
- API Error: 500 {"type":"error","error":{"type":"api_error",...
- Agent Creation Fails: Saved Agents Not Detected in CLI Listing
- Persistent API Request Timeout After Multiple Retry Attempts
- Claude AI usage limit reached|1748268000
- [Bug] Anthropic API Error: Internal Server Error (500) with no retry mechanism
- [Bug] Bash commands exit with code 1 on Windows due to file descriptor incompatibility with Git Bash
- [BUG] claude --chrome-native-host crashes on Windows (Bun internal assertion failure)
- Anthropic API Context Limit Exceeded During Compaction
- "Image Read Tool Failure: 'B is not a function' Error"
- [BUG] Organisation skills uploaded via admin console do not appear in Claude Code CLI
- [Bug] Local-scoped plugin installation blocks installation in other projects
- [Bug] Chrome MCP tools fail despite `/chrome` reporting connected status
- [Bug] Claude Opus 4.5 ignores instructions, significant degradation since Jan 14
- STOP DUMBING DOWN YOUR MODELS WHEN YOU ARE MAKING UPGRADES OR CHANGES! THIS IS DANGEROUS...AT LEAST LET THE USERS KNOW!
- [Bug] Autocomplete selection defaults to /compact instead of /context match
- Terminal Relaunch Prompt Persists After Extension Update
- JIRA Integration Fails in Claude Code with Authentication Error
- LSP tool: uv_spawn cannot find typescript-language-server despite being in PATH (Windows)
- [BUG] [Bug] SSH connection fails on Windows: "Failed to spawn /usr/bin/ssh: spawn /usr/bin/ssh ENOENT"
- [BUG] Unable to run claude code in FreeBSD Linux emulator jail
- VSCode extension: chat file links with non-ASCII (CJK) or space-containing paths never open (webview percent-encodes href, host never decodes)
- [Bug] Spurious ENOSPC errors in task output capture with racing cleanup deletes
- [Bug] Drag-and-drop screenshots display full file path instead of [Image #N] format
- [BUG] ssh ProxyCommand not working on claude desktop code tab on windows, ProxyJump not supported on windows or Mac
- [Bug] Anthropic API Error: Internal Server Error (500)
- [BUG] LSP query operations return empty results on Windows despite server responding (diagnostics work)
- [Bug] Degraded code generation quality and increased correction rate
- [Bug] Up arrow key navigates command history instead of moving cursor in multi-line prompts
- [BUG] Error: Failed to spawn Claude Code process: spawn ... ENOENT
- [Bug] File Modification Error During Update Operation
- [BUG] Claude fails to launch when the working directory does not exist, displaying an error message.
- Bash Shift+Enter Newline Functionality Broken in macOS Terminal.app
- [Bug] Anthropic API Error: HTTP 500 Internal Server Error
- cannot send any message, error 500 (San Francisco Mission)
- [BUG] VS code extension extremely slow @ autocomplete on v2.1.29
- [Feature Request] Custom slash commands missing `ide_opened_file` context tag
- Anthropic API Overloaded Error: Repeated 529 Service Unavailable Responses
- Performance Regression: Model Capability Degradation Observed
- Hooks fail with posix_spawn ENOENT when session cwd is deleted; request fallback cwd before spawning hooks
- pyright-lsp plugin fails with ENOENT uv_spawn on Windows