Skip to content

Switch Claude Code to native installer, remove Node.js dependency#13

Merged
tmaier merged 2 commits intomainfrom
claude/update-devcontainer-install-PRffC
Feb 9, 2026
Merged

Switch Claude Code to native installer, remove Node.js dependency#13
tmaier merged 2 commits intomainfrom
claude/update-devcontainer-install-PRffC

Conversation

@tmaier
Copy link
Owner

@tmaier tmaier commented Feb 9, 2026

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

  • Installation method: Replaced npm-based installation (@anthropic-ai/claude-code) with the native installer script from https://claude.ai/install.sh
  • Removed dependencies: Eliminated Node.js and npm as requirements, reducing the feature's footprint
  • Simplified configuration:
    • Removed installsAfter dependency on the Node.js feature
    • Removed postStartCommand for manual updates (native installer handles auto-updates)
  • Updated documentation:
    • Clarified that the native installer is used and automatically keeps itself up to date
    • Fixed typo: "Dev Contaier" → "Dev Container"
    • Updated documentation link to the native installer setup guide
  • Test updates:
    • Renamed test scenario from claude_code_with_node_feature to claude_code_default
    • Removed claude_code_with_node_image scenario (no longer needed)
    • Simplified test assertions to remove Node.js/npm checks
    • Removed commented-out ownership verification tests
  • Version bump: Updated feature version from 1.0.0 to 2.0.0

Implementation Details

The native installer is invoked via curl and automatically handles:

  • Platform detection and appropriate binary installation
  • User-specific installation when _REMOTE_USER is set
  • Self-updating mechanism (no manual update command needed)

The installation now requires only curl, which is more universally available than Node.js and npm.

https://claude.ai/code/session_01MwjhUN35gEe25BQvZK1MHk

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
@tmaier tmaier merged commit cbf76e7 into main Feb 9, 2026
39 of 51 checks passed
@tmaier tmaier deleted the claude/update-devcontainer-install-PRffC branch February 9, 2026 22:52
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.

2 participants