[Bug] Anthropic API Error: Invalid Request Parameters
Resolved 💬 3 comments Opened Oct 8, 2025 by Bmiller4evr Closed Oct 12, 2025
Bug Description
keep getting api error 400
Environment Info
- Platform: darwin
- Terminal: vscode
- Version: 2.0.1
- Feedback ID:
Errors
[{"error":"fv1: 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/bort/.npm/_logs/2025-10-08T18_47_05_424Z-debug-0.log\n at lY1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2204:388)\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:3177:8694","timestamp":"2025-10-08T18:47:05.630Z"},{"error":"fv1: 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/bort/.npm/_logs/2025-10-08T18_47_09_960Z-debug-0.log\n at lY1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2204:388)\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:3177:8694","timestamp":"2025-10-08T18:47:10.122Z"},{"error":"fv1: 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/bort/.npm/_logs/2025-10-08T18_47_32_642Z-debug-0.log\n at lY1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2204:388)\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:3177:8694","timestamp":"2025-10-08T18:47:32.861Z"},{"error":"fv1: 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/bort/.npm/_logs/2025-10-08T18_49_03_301Z-debug-0.log\n at lY1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2204:388)\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:3177:8694","timestamp":"2025-10-08T18:49:04.078Z"},{"error":"fv1: 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/bort/.npm/_logs/2025-10-08T19_08_48_613Z-debug-0.log\n at lY1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2204:388)\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:3177:8694","timestamp":"2025-10-08T19:08:48.825Z"},{"error":"fv1: 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/bort/.npm/_logs/2025
Note: Error logs were truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗