[BUG] Node 25.0.0 and `claude-code@2.0.19` don't work together
Resolved 💬 2 comments Opened Oct 16, 2025 by DanDroryAu Closed Oct 16, 2025
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Our pipelines run a node@latest environment with claude-code@latest and it started to break.
A quick test later and I found out that claude-code@2.0.19 has some errors on node@25.0.0
See the attached logs.
TypeError: Cannot read properties of undefined (reading 'prototype')
at file:///Users/dan.drory/.nvm/versions/node/v25.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:634:25327
at file:///Users/dan.drory/.nvm/versions/node/v25.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:402
at file:///Users/dan.drory/.nvm/versions/node/v25.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:634:25447
at file:///Users/dan.drory/.nvm/versions/node/v25.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:402
at file:///Users/dan.drory/.nvm/versions/node/v25.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:636:3204
at file:///Users/dan.drory/.nvm/versions/node/v25.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:402
at file:///Users/dan.drory/.nvm/versions/node/v25.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:636:6226
at file:///Users/dan.drory/.nvm/versions/node/v25.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:402
at file:///Users/dan.drory/.nvm/versions/node/v25.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:636:7408
at file:///Users/dan.drory/.nvm/versions/node/v25.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:402
Node.js v25.0.0
vs:
Now using node v24.10.0 (npm v11.6.1)
❯ npm install -g @anthropic-ai/claude-code@latest
added 12 packages in 7s
11 packages are looking for funding
run `npm fund` for details
❯ claude --version
2.0.19 (Claude Code)
What Should Happen?
I expect the version to return when running claude --version.
Error Messages/Logs
Steps to Reproduce
nvm install 25.0.0
npm install -g @anthropic-ai/claude-code@latest
claude --version
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.0.19 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗