Switch Claude Code to native installer, remove Node.js dependency#13
Merged
Switch Claude Code to native installer, remove Node.js dependency#13
Conversation
Replace npm-based installation with the official native installer (curl -fsSL https://claude.ai/install.sh | bash). This removes the Node.js dependency entirely, as Claude Code now ships as a pre-compiled binary that auto-updates. Changes: - install.sh: Use native installer instead of npm install - devcontainer-feature.json: Bump to 2.0.0, remove Node.js dependency and postStartCommand (native installer auto-updates) - NOTES.md: Update documentation, fix typo, update links - Test scenarios: Remove Node.js-specific scenarios, add default scenario - test.yaml: Add claude-code to autogenerated test matrix https://claude.ai/code/session_01MwjhUN35gEe25BQvZK1MHk
- Add test/claude-code/test.sh required by the test-autogenerated CI job - Symlink ~/.local/bin/claude to /usr/local/bin/claude in install.sh so the binary is on PATH in bare images (debian, ubuntu) https://claude.ai/code/session_01MwjhUN35gEe25BQvZK1MHk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR updates the Claude Code feature to use Anthropic's official native installer instead of the npm package, eliminating the Node.js dependency and simplifying the installation process.
Key Changes
@anthropic-ai/claude-code) with the native installer script fromhttps://claude.ai/install.shinstallsAfterdependency on the Node.js featurepostStartCommandfor manual updates (native installer handles auto-updates)claude_code_with_node_featuretoclaude_code_defaultclaude_code_with_node_imagescenario (no longer needed)Implementation Details
The native installer is invoked via curl and automatically handles:
_REMOTE_USERis setThe installation now requires only curl, which is more universally available than Node.js and npm.
https://claude.ai/code/session_01MwjhUN35gEe25BQvZK1MHk