feat: migrate Claude Code installation from npm to native installer - #37
MaEscalanteHe wants to merge 6 commits into
Conversation
Migrate from `npm install -g @anthropic-ai/claude-code` to the native installer at https://claude.ai/install.sh, removing the Node.js dependency entirely. - Remove Node.js install/detection functions - Add curl/bash dependency check - Add Alpine-specific deps (libgcc, libstdc++, ripgrep) - Copy binary to /usr/local/bin/ for multi-user access - Remove installsAfter Node.js dependency from feature metadata
- Remove node:1 feature from test scenarios - Remove node --version and npm --version checks
- Rewrite NOTES.md removing all Node.js references - Add Alpine Linux and deprecation notice sections - Remove Requirements section from README.md
|
@8enmann @chrislloyd Can you check this PR? Thank you |
To be able to use the last version of claud code, we need to use for now a customer feature release until this PR is merged anthropics/devcontainer-features#37
|
This PR is super on point, is there a blocker @milamer ? |
FabianSchurig
left a comment
There was a problem hiding this comment.
Hi @8enmann @chrislloyd, the PR looks good to me. We would like to use it, too. Could you accept and merge it, please.
Thanks in advance!
|
Is there any reason why this PR can't get merged? The "motivation" section of this PR says:
But IMO there's an even stronger motivation: Claude CLI gets very frequent updates, which means that every time it gets updated we have to rebuild our dev containers. There's also a "cosmetic" reason. Claude keeps nagging us with:
|
To be fair with the rate at which we get updates I've already made an alias for claude="claude update" And I've build my own dev container instrumentation on https://github.com/entropyvortex/buckle to suit my needs, but still rooting for this PR to be merged. |
|
Could someone by any chance verify if this repo is no longer being used by anthropic or not? |
Summary
npm install -g @anthropic-ai/claude-codewith the native installer (https://claude.ai/install.sh), removing the Node.js dependency entirelylibgcc,libstdc++,ripgrep)Motivation
The Claude Code CLI now provides a native installer that does not require Node.js. This simplifies the feature by removing the Node.js dependency, reducing container image size, and eliminating the complex Node.js auto-installation logic.
Test plan
devcontainer features test -f claude-code --skip-autogenerated --skip-duplicated .to verify scenario tests passdevcontainer features test --skip-scenarios -f claude-code -i ubuntu:latest .to verify autogenerated tests passclaude --versionworks inside a built container