[Bug] Unable to update Claude Code CLI
Resolved 💬 1 comment Opened May 28, 2026 by VJ-Raj1993 Closed Jun 30, 2026
Bug Description
cant update claude code
Environment Info
- Platform: darwin
- Terminal: Apple_Terminal
- Version: 2.1.119
- Feedback ID: 3cfe0206-249c-4479-91fb-11434bce5727
Errors
[{"error":"UpH: 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/vijayrajhonnur/.npm/_logs/2026-05-28T18_19_06_771Z-debug-0.log\n at FO_ (/$bunfs/root/src/entrypoints/cli.js:2733:2203)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:8885:2270)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-28T18:19:06.932Z"},{"error":"UpH: 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/vijayrajhonnur/.npm/_logs/2026-05-28T18_19_13_110Z-debug-0.log\n at FO_ (/$bunfs/root/src/entrypoints/cli.js:2733:2203)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:8885:2270)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-28T18:19:13.267Z"},{"error":"UpH: 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/vijayrajhonnur/.npm/_logs/2026-05-28T18_20_20_850Z-debug-0.log\n at FO_ (/$bunfs/root/src/entrypoints/cli.js:2733:2203)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-28T18:20:21.008Z"}]This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗