[BUG] `claude doctor` fails on Windows with "Cannot assign to read only property '0'"

Resolved 💬 3 comments Opened Oct 20, 2025 by rlucian Closed Oct 24, 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?

Environment: - OS: Windows - Node: v22.14.0 - npm: 11.6.0 - Claude Code: 2.0.24

When running:
claude doctor
or
within claude shell: /doctor

i get:
Error: ERROR Cannot assign to read only property '0' of object '[object String]'
ERROR Cannot assign to read only property '0' of object '[object String]' file:///C:/Users/radoo/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:8:5948 - YlQ (file:///C:/Users/radoo/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:8:5948) - IlQ (file:///C:/Users/radoo/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:8:6146) - XoQ (file:///C:/Users/radoo/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:8:37033) - UoQ (file:///C:/Users/radoo/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:8:37820) - (file:///C:/Users/radoo/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1921:652) - at Array.forEach (<anonymous>) - xk5 (file:///C:/Users/radoo/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1921:173) - (file:///C:/Users/radoo/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1921:1153) - at Array.map (<anonymous>) - njB (file:///C:/Users/radoo/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1921:1004)

What Should Happen?

claude doctor should run diagnostics

Error Messages/Logs

ERROR  Cannot assign to read only property '0' of object '[object String]'                                                                                                                                                             file:///C:/Users/radoo/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:8:5948                                                                                                                                         - YlQ (file:///C:/Users/radoo/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:8:5948)             - IlQ (file:///C:/Users/radoo/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:8:6146)             - XoQ (file:///C:/Users/radoo/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:8:37033)            - UoQ (file:///C:/Users/radoo/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:8:37820)            -  (file:///C:/Users/radoo/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1921:652)              -     at Array.forEach (<anonymous>)                                                                                - xk5 (file:///C:/Users/radoo/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1921:173)           -  (file:///C:/Users/radoo/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1921:1153)             -     at Array.map (<anonymous>)                                                                                    - njB (file:///C:/Users/radoo/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1921:1004)

Steps to Reproduce

claude doctor from windows 11 command prompt
or
within claude shell: /doctor

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.0.24 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

_No response_

View original on GitHub ↗

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