[BUG] Constant warning that "claude symlink points to invalid binary"

Resolved 💬 5 comments Opened Sep 19, 2025 by tmccombs Closed Sep 24, 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?

Every time I start claude I get this warning:

● Claude symlink points to invalid binary: ../lib/node_modules/@anthropic-ai/claude-code/cli.js

I haven't been able to find anything online about what would cause this, or how to fix it.

I start claude with ~/.local/bin/claude which is a (relative) symlink to ~/.local/lib/node_modules/@anthropic-ai/claude-code/cli.js

What Should Happen?

I shouldn't get this warning on startup

Error Messages/Logs

● Claude symlink points to invalid binary: ../lib/node_modules/@anthropic-ai/claude-code/cli.js

Steps to Reproduce

  1. On linux configure npm prefix to be ~/.local: npm config prefix ~/.local
  2. Install claude with `npm install -g @anthropic-ai/claude-code
  3. start claude
  4. see warning

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

not sure

Claude Code Version

1.0.119 (Claude Code)

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

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