Shim ~/.local/bin/claude to silence native-installer warnings #3
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
TJC/devcontainer-features!3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "claude-code-npm-launcher-shim"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Claude Code's npm build auto-migrates to the native installer in the background, but per anthropics/claude-code#26173 the migration sets installMethod="native" in ~/.claude.json without successfully creating the launcher at ~/.local/bin/claude. The npm install keeps working, but every start logs "directory ~/.local/bin does not exist" / "claude command not found at ~/.local/bin/claude".
Pre-create ~/.local/bin and symlink claude into it from the npm-installed binary so the startup self-check passes. If a future migration attempt actually succeeds, it will replace the symlink with a real native binary.
Also refactor install.sh and link-credentials.sh into named functions called from main(), and trim the oversized comment blocks across both scripts and the passthroughHostAuth option description.