Usage Policy Violation Prevents Code Access

Resolved 💬 3 comments Opened Jul 28, 2025 by amulyabala Closed Jan 5, 2026

Bug Description
I am unable to use Claude code due to a usage policy violation?

Environment Info

  • Platform: darwin
  • Terminal: cursor
  • Version: 1.0.44
  • Feedback ID:

Errors

[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n    at checkExecSyncError (node:child_process:885:11)\n    at execSync (node:child_process:957:15)\n    at wD (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:702:3921)\n    at file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:9350\n    at Q (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:13327)\n    at uC (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:8496)\n    at hC (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:7361)\n    at wB (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:11970)\n    at PpA (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:12128)","timestamp":"2025-07-28T22:08:59.014Z"},{"error":"Error: Insufficient permissions for global npm install.\n    at T9A (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2088:977)\n    at async r01 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2098:43)\n    at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2537:8652","timestamp":"2025-07-28T22:09:03.745Z"},{"error":"Error: Insufficient permissions for global npm install.\n    at T9A (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2088:977)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async r01 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2098:43)\n    at async Object.current (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2537:8652)","timestamp":"2025-07-28T22:39:56.791Z"},{"error":"Error: Insufficient permissions for global npm install.\n    at T9A (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2088:977)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async r01 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2098:43)\n    at async Object.current (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2537:8652)","timestamp":"2025-07-28T23:17:22.688Z"},{"error":"Error: Insufficient permissions for global npm install.\n    at T9A (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2088:977)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async r01 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2098:43)\n    at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2537:8652","timestamp":"2025-07-28T23:43:43.036Z"},{"error":"Error: Could not load the \"sharp\" module using the darwin-arm64 runtime\nPossible solutions:\n- Please upgrade Node.js:\n    Found 18.15.0\n    Requires ^18.17.0 || ^20.3.0 || >=21.0.0\n- Consult the installation documentation:\n    See https://sharp.pixelplumbing.com/install\n    at file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:406:20772\n    at file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:7:402\n    at file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:407:85\n    at file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:7:402\n    at file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:407:65825\n    at file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:7:402\n    at file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1376:1270\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async JA1 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1376:1232)\n    at async Rx2 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1996:3477)","timestamp":"2025-07-28T23:50:08.377Z"},{"error":"TypeError: (D.default || D) is not a function\n    at JA1 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1376:1296)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async Rx2 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1996:3477)","timestamp":"2025-07-28T23:51:21.235Z"},{"error":"TypeError: (D.default || D) is not a function\n    at JA1 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1376:1296)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async Rx2 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1996:3477)","timestamp":"2025-07-28T23:51:30.044Z"},{"error":"

Note: Error logs were truncated.

View original on GitHub ↗

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