[BUG] ERROR Expected null or instance of Node, got an instance of Node
Resolved 💬 3 comments Opened Feb 21, 2026 by K4leri Closed Feb 25, 2026
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?
ERROR Expected null or instance of Node, got an instance of Node
file:///C:/Users/K4ler/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:296:98636
- Error.<anonymous> (file:///C:/Users/K4ler/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:296:98636)
- <anonymous> (file:///C:/Users/K4ler/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:296:98462)
- t (file:///C:/Users/K4ler/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:297:257)
- p8 (file:///C:/Users/K4ler/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:297:3681)
- mA.A7 (file:///C:/Users/K4ler/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:297:5222)
- V1.insertChild (file:///C:/Users/K4ler/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:297:6724)
- E48.insertChild (file:///C:/Users/K4ler/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:297:31052)
- y48 (file:///C:/Users/K4ler/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:297:36277)
- hb (file:///C:/Users/K4ler/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:283:64788)
- hb (file:///C:/Users/K4ler/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:283:64895)
What Should Happen?
Error Messages/Logs
Steps to Reproduce
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.50 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗