[Bug] Auto-update failed with no diagnostic output from claude doctor

Resolved 💬 3 comments Opened Jan 13, 2026 by Yaakov-Belch Closed Feb 27, 2026

Bug Description
When I start claude, I get this warning: ? for Thinking off (tab to toggle)
shortcuts ✗ Auto-update failed · Try claude doctor or npm i -g
@anthropic-ai/claude-code
When running claude doctor, I get no helpful info about the problem: yaakov@pop-os:~$ claude doctor

Diagnostics
└ Currently running: unknown (2.0.24)
└ Path: /home/yaakov/.node-n/bin/node
└ Invoked: /home/yaakov/zk/Data/dev_ops/auto_bin/claude
└ Config install method: global
└ Auto-updates enabled: default (true)
└ Search: OK (vendor)

Press Enter to continue…
yaakov@pop-os:~$ cd 999
The problem is not analyzed and not solved with claude doctor. Claude doctor should either solve the problem or indicate what is wrong.

Environment Info

  • Platform: linux
  • Terminal: vte-based
  • Version: 2.0.24
  • Feedback ID: a7dfcb02-de9d-43e0-a5d5-42d2c7d5ab4b

Errors

[{"error":"wi1: Failed to install new version of claude:  npm error code ENOTEMPTY\nnpm error syscall rename\nnpm error path /home/yaakov/.node-n/lib/node_modules/@anthropic-ai/claude-code\nnpm error dest /home/yaakov/.node-n/lib/node_modules/@anthropic-ai/.claude-code-5NlzYeDx\nnpm error errno -39\nnpm error ENOTEMPTY: directory not empty, rename '/home/yaakov/.node-n/lib/node_modules/@anthropic-ai/claude-code' -> '/home/yaakov/.node-n/lib/node_modules/@anthropic-ai/.claude-code-5NlzYeDx'\nnpm error A complete log of this run can be found in: /home/yaakov/.npm/_logs/2026-01-13T15_25_12_527Z-debug-0.log\n    at $D1 (file:///home/yaakov/zk/zk-engine/node-apps/node_modules/@anthropic-ai/claude-code/cli.js:1880:389)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///home/yaakov/zk/zk-engine/node-apps/node_modules/@anthropic-ai/claude-code/cli.js:2811:33206","timestamp":"2026-01-13T15:25:12.696Z"},{"error":"wi1: Failed to install new version of claude:  npm error code ENOTEMPTY\nnpm error syscall rename\nnpm error path /home/yaakov/.node-n/lib/node_modules/@anthropic-ai/claude-code\nnpm error dest /home/yaakov/.node-n/lib/node_modules/@anthropic-ai/.claude-code-5NlzYeDx\nnpm error errno -39\nnpm error ENOTEMPTY: directory not empty, rename '/home/yaakov/.node-n/lib/node_modules/@anthropic-ai/claude-code' -> '/home/yaakov/.node-n/lib/node_modules/@anthropic-ai/.claude-code-5NlzYeDx'\nnpm error A complete log of this run can be found in: /home/yaakov/.npm/_logs/2026-01-13T15_26_06_545Z-debug-0.log\n    at $D1 (file:///home/yaakov/zk/zk-engine/node-apps/node_modules/@anthropic-ai/claude-code/cli.js:1880:389)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///home/yaakov/zk/zk-engine/node-apps/node_modules/@anthropic-ai/claude-code/cli.js:2811:33206","timestamp":"2026-01-13T15:26:06.708Z"}]

View original on GitHub ↗

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