claude-code - 💡(How to fix) Fix [Bug Report] Unclear issue description

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

[{"error":"Error: 1: Command failed with ERR_STREAM_PREMATURE_CLOSE: code --force --install-extension anthropic.claude-code\nPremature close \n at Ht1 (/$bunfs/root/src/entrypoints/cli.js:1577:4203)\n at async ts1 (/$bunfs/root/src/entrypoints/cli.js:1577:1435)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-08T13:30:23.442Z"},{"error":"wgH: 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/macbookduez/.npm/logs/2026-05-08T13_30_23_575Z-debug-0.log\n at Q$ (/$bunfs/root/src/entrypoints/cli.js:2648:2305)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:9160:10892)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-08T13:30:23.787Z"},{"error":"wgH: 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/macbookduez/.npm/logs/2026-05-08T13_30_28_128Z-debug-0.log\n at Q$ (/$bunfs/root/src/entrypoints/cli.js:2648:2305)\n at unknown\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-08T13:30:28.340Z"}]

Code Example

[{"error":"Error: 1: Command failed with ERR_STREAM_PREMATURE_CLOSE: code --force --install-extension anthropic.claude-code\nPremature close \n    at Ht1 (/$bunfs/root/src/entrypoints/cli.js:1577:4203)\n    at async ts1 (/$bunfs/root/src/entrypoints/cli.js:1577:1435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-08T13:30:23.442Z"},{"error":"wgH: 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/macbookduez/.npm/_logs/2026-05-08T13_30_23_575Z-debug-0.log\n    at Q$_ (/$bunfs/root/src/entrypoints/cli.js:2648:2305)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:9160:10892)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-08T13:30:23.787Z"},{"error":"wgH: 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/macbookduez/.npm/_logs/2026-05-08T13_30_28_128Z-debug-0.log\n    at Q$_ (/$bunfs/root/src/entrypoints/cli.js:2648:2305)\n    at unknown\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-08T13:30:28.340Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description i don't no

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 2.1.132
  • Feedback ID: 8d92b65b-81cc-4d42-8697-80879e99cb25

Errors

[{"error":"Error: 1: Command failed with ERR_STREAM_PREMATURE_CLOSE: code --force --install-extension anthropic.claude-code\nPremature close \n    at Ht1 (/$bunfs/root/src/entrypoints/cli.js:1577:4203)\n    at async ts1 (/$bunfs/root/src/entrypoints/cli.js:1577:1435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-08T13:30:23.442Z"},{"error":"wgH: 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/macbookduez/.npm/_logs/2026-05-08T13_30_23_575Z-debug-0.log\n    at Q$_ (/$bunfs/root/src/entrypoints/cli.js:2648:2305)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:9160:10892)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-08T13:30:23.787Z"},{"error":"wgH: 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/macbookduez/.npm/_logs/2026-05-08T13_30_28_128Z-debug-0.log\n    at Q$_ (/$bunfs/root/src/entrypoints/cli.js:2648:2305)\n    at unknown\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-08T13:30:28.340Z"}]

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING