Bug Report

Resolved 💬 3 comments Opened Jul 21, 2025 by MajotraderLucky Closed Aug 19, 2025

Bug Description

Environment Info

  • Platform: linux
  • Terminal: zed
  • Version: 1.0.29
  • Feedback ID: 5f808039-2312-4218-8b55-aca786300a0e

Errors

[{"error":"Error: Failed to install new version of claude:  npm ERR! code ENOTEMPTY\nnpm ERR! syscall rename\nnpm ERR! path /home/ryazanov/.npm-global/lib/node_modules/@anthropic-ai/claude-code\nnpm ERR! dest /home/ryazanov/.npm-global/lib/node_modules/@anthropic-ai/.claude-code-hrKhTegb\nnpm ERR! errno -39\nnpm ERR! ENOTEMPTY: directory not empty, rename '/home/ryazanov/.npm-global/lib/node_modules/@anthropic-ai/claude-code' -> '/home/ryazanov/.npm-global/lib/node_modules/@anthropic-ai/.claude-code-hrKhTegb'\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR!     /home/ryazanov/.npm/_logs/2025-07-21T07_13_16_153Z-debug-0.log\n\n    at ez1 (file:///home/ryazanov/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2000:392)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async file:///home/ryazanov/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2447:8403","timestamp":"2025-07-21T07:13:16.348Z"},{"error":"Error: Failed to install new version of claude:  npm ERR! code ENOTEMPTY\nnpm ERR! syscall rename\nnpm ERR! path /home/ryazanov/.npm-global/lib/node_modules/@anthropic-ai/claude-code\nnpm ERR! dest /home/ryazanov/.npm-global/lib/node_modules/@anthropic-ai/.claude-code-hrKhTegb\nnpm ERR! errno -39\nnpm ERR! ENOTEMPTY: directory not empty, rename '/home/ryazanov/.npm-global/lib/node_modules/@anthropic-ai/claude-code' -> '/home/ryazanov/.npm-global/lib/node_modules/@anthropic-ai/.claude-code-hrKhTegb'\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR!     /home/ryazanov/.npm/_logs/2025-07-21T07_13_33_453Z-debug-0.log\n\n    at ez1 (file:///home/ryazanov/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2000:392)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async file:///home/ryazanov/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2447:8403","timestamp":"2025-07-21T07:13:33.625Z"},{"error":"Error: Failed to install new version of claude:  npm ERR! code ENOTEMPTY\nnpm ERR! syscall rename\nnpm ERR! path /home/ryazanov/.npm-global/lib/node_modules/@anthropic-ai/claude-code\nnpm ERR! dest /home/ryazanov/.npm-global/lib/node_modules/@anthropic-ai/.claude-code-hrKhTegb\nnpm ERR! errno -39\nnpm ERR! ENOTEMPTY: directory not empty, rename '/home/ryazanov/.npm-global/lib/node_modules/@anthropic-ai/claude-code' -> '/home/ryazanov/.npm-global/lib/node_modules/@anthropic-ai/.claude-code-hrKhTegb'\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR!     /home/ryazanov/.npm/_logs/2025-07-21T07_13_58_843Z-debug-0.log\n\n    at ez1 (file:///home/ryazanov/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2000:392)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async file:///home/ryazanov/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2447:8403","timestamp":"2025-07-21T07:13:59.031Z"},{"error":"Error: Failed to install new version of claude:  npm ERR! code ENOTEMPTY\nnpm ERR! syscall rename\nnpm ERR! path /home/ryazanov/.npm-global/lib/node_modules/@anthropic-ai/claude-code\nnpm ERR! dest /home/ryazanov/.npm-global/lib/node_modules/@anthropic-ai/.claude-code-hrKhTegb\nnpm ERR! errno -39\nnpm ERR! ENOTEMPTY: directory not empty, rename '/home/ryazanov/.npm-global/lib/node_modules/@anthropic-ai/claude-code' -> '/home/ryazanov/.npm-global/lib/node_modules/@anthropic-ai/.claude-code-hrKhTegb'\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR!     /home/ryazanov/.npm/_logs/2025-07-21T07_14_18_781Z-debug-0.log\n\n    at ez1 (file:///home/ryazanov/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2000:392)\n    at async file:///home/ryazanov/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2447:8403","timestamp":"2025-07-21T07:14:18.979Z"},{"error":"Error: Failed to install new version of claude:  npm ERR! code ENOTEMPTY\nnpm ERR! syscall rename\nnpm ERR! path /home/ryazanov/.npm-global/lib/node_modules/@anthropic-ai/claude-code\nnpm ERR! dest /home/ryazanov/.npm-global/lib/node_modules/@anthropic-ai/.claude-code-hrKhTegb\nnpm ERR! errno -39\nnpm ERR! ENOTEMPTY: directory not empty, rename '/home/ryazanov/.npm-global/lib/node_modules/@anthropic-ai/claude-code' -> '/home/ryazanov/.npm-global/lib/node_modules/@anthropic-ai/.claude-code-hrKhTegb'\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR!     /home/ryazanov/.npm/_logs/2025-07-21T07_16_05_513Z-debug-0.log\n\n    at ez1 (file:///home/ryazanov/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2000:392)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async file:///home/ryazanov/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2447:8403","timestamp":"2025-07-21T07:16:05.701Z"},{"error":"Error: Failed to install new version of claude:  npm ERR! code ENOTEMPTY\nnpm ERR! syscall rename\nnpm ERR! path /home/ryazanov/.npm-global/lib/node_modules/@anthropic-ai/claude-code\nnpm ERR! dest /home/ryaz

Note: Error logs were truncated.

View original on GitHub ↗

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