[Bug] Auto-update failed with npm installation error

Resolved 💬 3 comments Opened May 3, 2026 by Cristian-Guzman-LS Closed May 7, 2026

Bug Description
Auto-update failed · Try claude doctor or npm i -g @anthropic-ai/claude-code

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 2.1.112
  • Feedback ID: bf23e50f-bd2d-40ab-aa00-0e0f146cc0cf

Errors

[{"error":"cq8: Failed to install new version of claude:  npm error code ENOTEMPTY\nnpm error syscall rename\nnpm error path /opt/homebrew/lib/node_modules/@anthropic-ai/claude-code\nnpm error dest /opt/homebrew/lib/node_modules/@anthropic-ai/.claude-code-2DTsDk1V\nnpm error errno -66\nnpm error ENOTEMPTY: directory not empty, rename '/opt/homebrew/lib/node_modules/@anthropic-ai/claude-code' -> '/opt/homebrew/lib/node_modules/@anthropic-ai/.claude-code-2DTsDk1V'\nnpm error A complete log of this run can be found in: /Users/cristianguzman/.npm/_logs/2026-05-03T22_39_03_197Z-debug-0.log\n    at iq8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3007:944)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8527:10659","timestamp":"2026-05-03T22:39:03.474Z"},{"error":"cq8: Failed to install new version of claude:  npm error code ENOTEMPTY\nnpm error syscall rename\nnpm error path /opt/homebrew/lib/node_modules/@anthropic-ai/claude-code\nnpm error dest /opt/homebrew/lib/node_modules/@anthropic-ai/.claude-code-2DTsDk1V\nnpm error errno -66\nnpm error ENOTEMPTY: directory not empty, rename '/opt/homebrew/lib/node_modules/@anthropic-ai/claude-code' -> '/opt/homebrew/lib/node_modules/@anthropic-ai/.claude-code-2DTsDk1V'\nnpm error A complete log of this run can be found in: /Users/cristianguzman/.npm/_logs/2026-05-03T22_39_15_295Z-debug-0.log\n    at iq8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3007:944)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8527:10659","timestamp":"2026-05-03T22:39:15.497Z"}]

View original on GitHub ↗

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