[BUG] $HOME/.claude/local/node_modules/.bin/claude: No such file or directory when trying to run claude code

Resolved 💬 5 comments Opened Sep 11, 2025 by Brandsma Closed Sep 14, 2025

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

When trying to run Claude Code by using 'claude' in the terminal. I get the following error:

/Users/USER/.claude/local/claude: line 2: /Users/USER/.claude/local/node_modules/.bin/claude: No such file or directory
/Users/USER/.claude/local/claude: line 2: exec: /Users/USER/.claude/local/node_modules/.bin/claude: cannot execute: No such file or directory

This started occuring recently after having made changes to my mcp servers in claude_config. However, this could be largely unrelated as emptying this file has no effect. Claude Desktop also still works with the claude_config.json filled with MCP servers.

What Should Happen?

I expect claude code to open.

Error Messages/Logs

/Users/USER/.claude/local/claude: line 2: /Users/USER/.claude/local/node_modules/.bin/claude: No such file or directory
/Users/USER/.claude/local/claude: line 2: exec: /Users/USER/.claude/local/node_modules/.bin/claude: cannot execute: No such file or directory

Steps to Reproduce

Not entirely sure how to recreate, other than removing the file at .bin/claude and then running claude code.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

N/A (cannot run claude --version, however, installed the most recent version as of 11-09-2025)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

iTerm2

Additional Information

_No response_

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗