News listClaude Code updates to native binary, ditching JS and Node.js dependency
動區 BlockTempo2026-04-19 04:33:47

Claude Code updates to native binary, ditching JS and Node.js dependency

ORIGINALClaude Code 更新拋掉 JS 改原生二進制,告別 Node.js 依賴
AI Impact AnalysisGrok analyzing...
📄Full Article· Automatically extracted by trafilaturaGemini 翻譯1509 words
Anthropic upgraded the distribution method of Claude Code in v2.1.113: the npm package has been changed from JavaScript code to pre-compiled native binary executables for each platform. This version replaces the JavaScript code with native binaries, eliminating the hidden costs of waiting for the Node.js process and JIT warm-up every time it starts. (Context: Claude Opus 4.7 In-Depth: Coding capabilities upgraded, 1M context at no extra cost, what are the downsides?) (Background: Anthropic launches visual design tool "Claude Design"! Create presentations, proposals, and app prototypes in one sentence.) Every time you type claude, the system repeats the same process: launching Node.js, reading all JavaScript scripts, completing JIT warm-up, and then entering the CLI main loop. This latency is negligible for long-running Web servers, but for CLI tools that must restart from scratch with every call, this waiting time becomes a significant performance bottleneck when used dozens of times a day. Anthropic solved this with a single update. Starting from v2.1.113, npm install -g @anthropic-ai/claude-code has changed what gets installed. On the surface, the command remains unchanged; internally, the npm package no longer distributes JavaScript code. Instead, it pulls the corresponding pre-compiled native binary executable based on the user's operating system (macOS / Linux / Windows, ARM / x86) and links it to the correct location via a postinstall script. User installation process: one command, business as usual. JS version startup path (before v2.1.113) Every time a user runs claude, the system must complete four steps: - Launch Node.js: The OS starts the Node.js runtime environment. - Read scripts: Node.js reads all .js files of Claude Code. - JIT warm-up: The Just-In-Time compiler compiles JavaScript into machine code. - Enter CLI main loop: Only then does it actually start working. Native binary startup path (from v2.1.113) Anthropic packages the JavaScript engine and all code into a single executable during release, compiled separately for each platform. The OS receives a native format it recognizes: it loads directly, executes directly, and skips all the overhead of starting Node.js and JIT warm-up. For power users who type claude dozens of times a day, the disappearance of startup latency is a tangible improvement. You don't need to do anything. Use the original command: npm install -g @anthropic-ai/claude-code npm automatically selects the native binary for the corresponding platform in the background, and the user perceives no changes. If you want to continue using the JS version For special requirements (such as needing to run on a platform without a pre-compiled binary), you can pin the version number: npm install -g @anthropic-ai/[email protected] This is not an Anthropic innovation, but a general trend in toolchain evolution. CLI tools in the Rust ecosystem (ripgrep, fd) and Go tools (gh, terraform) have long distributed native binaries directly to avoid dependencies on external runtimes. The JavaScript ecosystem has historically relied on the Node.js runtime, but as tool complexity increases and usage frequency grows, the startup cost of Node.js has shifted from "acceptable" to a "clear obstacle." Anthropic's choice this time is to bundle the JS engine directly, making the existence of the runtime invisible to the user. For developers who rely on Claude Code for their daily work, this minor version update hides a genuine improvement in user experience.
Data Status✓ Full text extractedRead Original (動區 BlockTempo)
🔍Historical Similar Events· Keyword + Asset Matching6 items
💡 Currently matching via keywords + symbols (MVP) · Will be upgraded to embedding semantic search later
Raw Information
ID:4737a8c1ee
Source:動區 BlockTempo
Published:2026-04-19 04:33:47
Category:zh_news · Export Category zh
Symbols:Unspecified
Community Votes:+0 /0 · ⭐ 0 Important · 💬 0 Comments
Claude Code updates to native binary, ditching JS and Node.js dependency | Feel.Trading