claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[Bug] VS Code Crash During Large Code Changes, Installation Failure

Open 1001pranav opened this issue 1 year ago • 2 comments

Bug Description VS Code is crashing where Claude code make lot of change and I cant update to new version in system
both npm install and claude doctor is not working

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 1.0.102
  • Feedback ID: 03b0d24b-6116-4ea3-9ed3-7b4ac56033f0

Errors

[{"error":"Error: 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/pranavrnayakn/.npm/_logs/2025-09-26T10_04_04_332Z-debug-0.log\n    at MG1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1973:393)\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:3572:12080","timestamp":"2025-09-26T10:04:04.530Z"},{"error":"Error: 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/pranavrnayakn/.npm/_logs/2025-09-26T10_05_46_160Z-debug-0.log\n    at MG1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1973:393)\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:3572:12080","timestamp":"2025-09-26T10:05:46.350Z"},{"error":"Error: 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/pranavrnayakn/.npm/_logs/2025-09-26T10_10_25_037Z-debug-0.log\n    at MG1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1973:393)\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:3572:12080","timestamp":"2025-09-26T10:10:25.494Z"},{"error":"Error: 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/pranavrnayakn/.npm/_logs/2025-09-26T10_13_27_213Z-debug-0.log\n    at MG1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1973:393)\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:3572:12080","timestamp":"2025-09-26T10:13:27.418Z"},{"error":"Error: 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/pranavrnayakn/.npm/_logs/2025-09-26T10_13_40_220Z-debug-0.log\n    at MG1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1973:393)\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:3572:12080","timestamp":"2025-09-26T10:13:40.403Z"},{"error":"Error: 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, 

Note: Error logs were truncated.

1001pranav avatar Sep 26 '25 11:09 1001pranav

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/7373
  2. https://github.com/anthropics/claude-code/issues/3025
  3. https://github.com/anthropics/claude-code/issues/3172

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

github-actions[bot] avatar Sep 26 '25 11:09 github-actions[bot]

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

github-actions[bot] avatar Oct 03 '25 14:10 github-actions[bot]