Native install detection fails when claude is installed via Homebrew

Resolved 💬 3 comments Opened Mar 7, 2026 by binarydoubling Closed Mar 11, 2026

Bug

When installMethod is native, Claude Code expects the claude binary at /Users/<user>/.local/bin/claude and errors with:

installMethod is native, but claude command not found at /Users/<user>/.local/bin/claude

However, if Claude was installed via Homebrew, the binary lives at /opt/homebrew/bin/claude instead, causing this check to fail.

Workaround

Symlinking the Homebrew binary to the expected path resolves it:

mkdir -p ~/.local/bin
ln -sf "$(which claude)" ~/.local/bin/claude

Suggested fix

Instead of hardcoding the expected binary path based on install method, use which claude (or equivalent path resolution) to locate the binary. This would handle cases where claude is available on $PATH but not at the specific hardcoded location.

Environment

  • macOS (Darwin)
  • Claude installed via Homebrew (/opt/homebrew/bin/claude)

View original on GitHub ↗

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