[BUG] /doctor return error

Resolved 💬 3 comments Opened Dec 3, 2025 by jonathan-bibas Closed Dec 6, 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?

  • Error: Cannot assign to read only property '0' of object '[object String]'
  • Command: /doctor
  • Version: 2.0.57
  • Platform: macOS (Darwin 24.6.0)

What Should Happen?

run the doctor normaly

Error Messages/Logs

ERROR  Cannot assign to read only property '0' of object '[object String]'

 file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:59:8289

 - A64 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:59:8289)
 - N64 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:59:10571)
 - SA6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:409:12820)
 - gA6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:409:13609)
 -  (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3013:641)
 -     at Array.forEach (<anonymous>)
 - hS3 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3013:162)
 -  (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3013:1142)
 -     at Array.map (<anonymous>)
 - QX9 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3013:993)

Steps to Reproduce

Run /doctor

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

v2.0.57

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗