Skip to content

Remove stale node_modules path from CLI installation locations - #1221

Open
anishesg wants to merge 1 commit into
anthropics:mainfrom
proudhare:fix/ph-issue-1194
Open

Remove stale node_modules path from CLI installation locations#1221
anishesg wants to merge 1 commit into
anthropics:mainfrom
proudhare:fix/ph-issue-1194

Conversation

@anishesg

Copy link
Copy Markdown

The find_installed_cli() function in scripts/download_cli.py included a reference to Path.home() / "node_modules" / ".bin" / "claude" as a Unix installation location. This path is not used by the official Claude CLI installer and does not match the installation paths documented in .github/workflows/test.yml, which only uses $HOME/.local/bin for Linux/macOS and $USERPROFILE\.local\bin for Windows.

The node_modules path appears to be a leftover from an earlier installation method that is no longer supported. When the CLI cannot be found during the wheel build process, the error implicitly references this outdated location, causing confusion.

This change removes the stale node_modules reference from the list of checked locations, keeping only the two legitimate Unix installation paths: $HOME/.local/bin/claude and /usr/local/bin/claude.

Fixes #1194

The `find_installed_cli()` function in `scripts/download_cli.py` included a reference to `Path.home() / "node_modules" / ".bin" / "cli"` as a Unix installation location. This path is not used by the official CLI installer and does not match the installation paths documented in `.github/workflows/test.yml`, which only uses `$HOME/.local/bin` for Linux/macOS and `$USERPROFILE\.local\bin` for Windows.

Signed-off-by: anish <anishesg@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Minor: typing the SDK wheel build command mentions a stale cache path in the error message

1 participant