[Bug] Data Loss: Claude Code deleted important files from user system

Resolved 💬 3 comments Opened May 19, 2026 by 0xLuke-SoL Closed May 23, 2026

Bug Description
claude ha eliminato dei dati iimportanti dal mio computer.

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.132
  • Feedback ID: 4aa038a4-387d-4bd5-8128-c54caaa17833

Errors

[{"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-19T12_52_17_092Z-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-19T12:52:17.565Z"},{"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-19T12_58_46_055Z-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-19T12:58:46.510Z"},{"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-19T12_59_53_239Z-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-19T12:59:53.451Z"},{"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-19T13_00_30_940Z-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-19T13:00:31.153Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:120:13305)\n    at emit (node:events:92:22)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:119:3321)\n    at request (/$bunfs/root/src/entrypoints/cli.js:122:2467)\n    at async ht6 (/$bunfs/root/src/entrypoints/cli.js:447:4799)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-19T13:05:28.075Z"},{"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-19T13_09_49_394Z-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-19T13:09:49.864Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3449)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-19T13:11:11.753Z"}]

View original on GitHub ↗

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