Bug Description
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.35: tool_use ids were found without tool_result blocks immediately after: toolu_01Kjp7i9iF3xJ3z9aH4pSaRw. Each tool_use block must have a corresponding tool_result block in the next message."}}
Environment Info
- Platform: win32
- Terminal: vscode
- Version: 1.0.70
- Feedback ID: e0ebdd7d-45c9-440b-b9f5-ddbffd1c02dc
Errors
[{"error":"Error: Failed to install new version of claude: npm error code EPERM\nnpm error syscall mkdir\nnpm error path C:\\Program Files\\nodejs\\node_modules\\@anthropic-ai\\.claude-code-by4tuZmI\nnpm error errno -4048\nnpm error Error: EPERM: operation not permitted, mkdir 'C:\\Program Files\\nodejs\\node_modules\\@anthropic-ai\\.claude-code-by4tuZmI'\nnpm error at async Object.mkdir (node:internal/fs/promises:859:10)\nnpm error at async moveFile (C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\@npmcli\\fs\\lib\\move-file.js:27:3)\nnpm error at async Promise.all (index 0)\nnpm error at async moveFile (C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\@npmcli\\fs\\lib\\move-file.js:36:9)\nnpm error at async Promise.allSettled (index 0)\nnpm error at async [reifyPackages] (C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\@npmcli\\arborist\\lib\\arborist\\reify.js:332:11)\nnpm error at async Arborist.reify (C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\@npmcli\\arborist\\lib\\arborist\\reify.js:137:5)\nnpm error at async Install.exec (C:\\Program Files\\nodejs\\node_modules\\npm\\lib\\commands\\install.js:150:5)\nnpm error at async Npm.exec (C:\\Program Files\\nodejs\\node_modules\\npm\\lib\\npm.js:208:9)\nnpm error at async module.exports (C:\\Program Files\\nodejs\\node_modules\\npm\\lib\\cli\\entry.js:67:5) {\nnpm error errno: -4048,\nnpm error code: 'EPERM',\nnpm error syscall: 'mkdir',\nnpm error path: 'C:\\\\Program Files\\\\nodejs\\\\node_modules\\\\@anthropic-ai\\\\.claude-code-by4tuZmI'\nnpm error }\nnpm error\nnpm error The operation was rejected by your operating system.\nnpm error It's possible that the file was already in use (by a text editor or antivirus),\nnpm error or that you lack permissions to access it.\nnpm error\nnpm error If you believe this might be a permissions issue, please double-check the\nnpm error permissions of the file and its containing directories, or try running\nnpm error the command again as root/Administrator.\nnpm error A complete log of this run can be found in: C:\\Users\\xserver\\AppData\\Local\\npm-cache\\_logs\\2025-08-08T17_55_12_716Z-debug-0.log\n at NG1 (file:///C:/Program%20Files/nodejs/node_modules/@anthropic-ai/claude-code/cli.js:2042:392)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async file:///C:/Program%20Files/nodejs/node_modules/@anthropic-ai/claude-code/cli.js:3222:10901","timestamp":"2025-08-08T17:55:14.419Z"},{"error":"Error: Failed to install new version of claude: npm error code EPERM\nnpm error syscall mkdir\nnpm error path C:\\Program Files\\nodejs\\node_modules\\@anthropic-ai\\.claude-code-by4tuZmI\nnpm error errno -4048\nnpm error Error: EPERM: operation not permitted, mkdir 'C:\\Program Files\\nodejs\\node_modules\\@anthropic-ai\\.claude-code-by4tuZmI'\nnpm error at async Object.mkdir (node:internal/fs/promises:859:10)\nnpm error at async moveFile (C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\@npmcli\\fs\\lib\\move-file.js:27:3)\nnpm error at async Promise.all (index 0)\nnpm error at async moveFile (C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\@npmcli\\fs\\lib\\move-file.js:36:9)\nnpm error at async Promise.allSettled (index 0)\nnpm error at async [reifyPackages] (C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\@npmcli\\arborist\\lib\\arborist\\reify.js:332:11)\nnpm error at async Arborist.reify (C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\@npmcli\\arborist\\lib\\arborist\\reify.js:137:5)\nnpm error at async Install.exec (C:\\Program Files\\nodejs\\node_modules\\npm\\lib\\commands\\install.js:150:5)\nnpm error at async Npm.exec (C:\\Program Files\\nodejs\\node_modules\\npm\\lib\\npm.js:208:9)\nnpm error at async module.exports (C:\\Program Files\\nodejs\\node_modules\\npm\\lib\\cli\\entry.js:67:5) {\nnpm error errno: -4048,\nnpm error code: 'EPERM',\nnpm error syscall: 'mkdir',\nnpm error path: 'C:\\\\Program Files\\\\nodejs\\\\node_modules\\\\@anthropic-ai\\\\.claude-code-by4tuZmI'\nnpm error }\nnpm error\nnpm error The operation was rejected by your operating system.\nnpm error It's possible that the file was already in use (by a text editor or antivirus),\nnpm error or that you lack permissions to acces
Note: Error logs were truncated.
Bug Description
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.35:
tool_useids were found withouttool_resultblocks immediately after: toolu_01Kjp7i9iF3xJ3z9aH4pSaRw. Eachtool_useblock must have a correspondingtool_resultblock in the next message."}}Environment Info
Errors
[{"error":"Error: Failed to install new version of claude: npm error code EPERM\nnpm error syscall mkdir\nnpm error path C:\\Program Files\\nodejs\\node_modules\\@anthropic-ai\\.claude-code-by4tuZmI\nnpm error errno -4048\nnpm error Error: EPERM: operation not permitted, mkdir 'C:\\Program Files\\nodejs\\node_modules\\@anthropic-ai\\.claude-code-by4tuZmI'\nnpm error at async Object.mkdir (node:internal/fs/promises:859:10)\nnpm error at async moveFile (C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\@npmcli\\fs\\lib\\move-file.js:27:3)\nnpm error at async Promise.all (index 0)\nnpm error at async moveFile (C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\@npmcli\\fs\\lib\\move-file.js:36:9)\nnpm error at async Promise.allSettled (index 0)\nnpm error at async [reifyPackages] (C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\@npmcli\\arborist\\lib\\arborist\\reify.js:332:11)\nnpm error at async Arborist.reify (C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\@npmcli\\arborist\\lib\\arborist\\reify.js:137:5)\nnpm error at async Install.exec (C:\\Program Files\\nodejs\\node_modules\\npm\\lib\\commands\\install.js:150:5)\nnpm error at async Npm.exec (C:\\Program Files\\nodejs\\node_modules\\npm\\lib\\npm.js:208:9)\nnpm error at async module.exports (C:\\Program Files\\nodejs\\node_modules\\npm\\lib\\cli\\entry.js:67:5) {\nnpm error errno: -4048,\nnpm error code: 'EPERM',\nnpm error syscall: 'mkdir',\nnpm error path: 'C:\\\\Program Files\\\\nodejs\\\\node_modules\\\\@anthropic-ai\\\\.claude-code-by4tuZmI'\nnpm error }\nnpm error\nnpm error The operation was rejected by your operating system.\nnpm error It's possible that the file was already in use (by a text editor or antivirus),\nnpm error or that you lack permissions to access it.\nnpm error\nnpm error If you believe this might be a permissions issue, please double-check the\nnpm error permissions of the file and its containing directories, or try running\nnpm error the command again as root/Administrator.\nnpm error A complete log of this run can be found in: C:\\Users\\xserver\\AppData\\Local\\npm-cache\\_logs\\2025-08-08T17_55_12_716Z-debug-0.log\n at NG1 (file:///C:/Program%20Files/nodejs/node_modules/@anthropic-ai/claude-code/cli.js:2042:392)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async file:///C:/Program%20Files/nodejs/node_modules/@anthropic-ai/claude-code/cli.js:3222:10901","timestamp":"2025-08-08T17:55:14.419Z"},{"error":"Error: Failed to install new version of claude: npm error code EPERM\nnpm error syscall mkdir\nnpm error path C:\\Program Files\\nodejs\\node_modules\\@anthropic-ai\\.claude-code-by4tuZmI\nnpm error errno -4048\nnpm error Error: EPERM: operation not permitted, mkdir 'C:\\Program Files\\nodejs\\node_modules\\@anthropic-ai\\.claude-code-by4tuZmI'\nnpm error at async Object.mkdir (node:internal/fs/promises:859:10)\nnpm error at async moveFile (C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\@npmcli\\fs\\lib\\move-file.js:27:3)\nnpm error at async Promise.all (index 0)\nnpm error at async moveFile (C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\@npmcli\\fs\\lib\\move-file.js:36:9)\nnpm error at async Promise.allSettled (index 0)\nnpm error at async [reifyPackages] (C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\@npmcli\\arborist\\lib\\arborist\\reify.js:332:11)\nnpm error at async Arborist.reify (C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\@npmcli\\arborist\\lib\\arborist\\reify.js:137:5)\nnpm error at async Install.exec (C:\\Program Files\\nodejs\\node_modules\\npm\\lib\\commands\\install.js:150:5)\nnpm error at async Npm.exec (C:\\Program Files\\nodejs\\node_modules\\npm\\lib\\npm.js:208:9)\nnpm error at async module.exports (C:\\Program Files\\nodejs\\node_modules\\npm\\lib\\cli\\entry.js:67:5) {\nnpm error errno: -4048,\nnpm error code: 'EPERM',\nnpm error syscall: 'mkdir',\nnpm error path: 'C:\\\\Program Files\\\\nodejs\\\\node_modules\\\\@anthropic-ai\\\\.claude-code-by4tuZmI'\nnpm error }\nnpm error\nnpm error The operation was rejected by your operating system.\nnpm error It's possible that the file was already in use (by a text editor or antivirus),\nnpm error or that you lack permissions to accesNote: Error logs were truncated.