claude-code - 💡(How to fix) Fix [Bug] Anthropic API Error: Usage Policy violation triggered by npm error output

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

[{"error":"Error: ripgrep exited with code null\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:706:914)\n at emit (node:events:98:22)\n at #maybeClose (node:child_process:778:16)\n at #handleOnExit (node:child_process:532:72)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-11T20:00:49.950Z"},{"error":"Error: ripgrep exited with code null\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:706:914)\n at emit (node:events:98:22)\n at #maybeClose (node:child_process:778:16)\n at #handleOnExit (node:child_process:532:72)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-11T22:10:59.341Z"},{"error":"RipgrepTimeoutError: Ripgrep search timed out after 20 seconds. The search may have matched files but did not complete in time. Try searching a more specific path or pattern.\n at A (B:/~BUN/root/src/entrypoints/cli.js:709:242)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:709:456)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:706:985)\n at emit (node:events:98:22)\n at #maybeClose (node:child_process:778:16)\n at #handleOnExit (node:child_process:532:72)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-11T22:10:59.343Z"},{"error":"Error: ripgrep exited with code null\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:706:914)\n at emit (node:events:98:22)\n at #maybeClose (node:child_process:778:16)\n at #handleOnExit (node:child_process:532:72)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-11T22:10:59.974Z"},{"error":"RipgrepTimeoutError: Ripgrep search timed out after 20 seconds. The search may have matched files but did not complete in time. Try searching a more specific path or pattern.\n at A (B:/~BUN/root/src/entrypoints/cli.js:709:242)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:709:456)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:706:985)\n at emit (node:events:98:22)\n at #maybeClose (node:child_process:778:16)\n at #handleOnExit (node:child_process:532:72)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-11T22:10:59.974Z"},{"error":"Error: ripgrep exited with code null\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:706:914)\n at emit (node:events:98:22)\n at #maybeClose (node:child_process:778:16)\n at #handleOnExit (node:child_process:532:72)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-11T22:11:00.246Z"},{"error":"RipgrepTimeoutError: Ripgrep search timed out after 20 seconds. The search may have matched files but did not complete in time. Try searching a more specific path or pattern.\n at A (B:/~BUN/root/src/entrypoints/cli.js:709:242)\n at <anonymou…

Code Example

[{"error":"Error: ripgrep exited with code null\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:706:914)\n    at emit (node:events:98:22)\n    at #maybeClose (node:child_process:778:16)\n    at #handleOnExit (node:child_process:532:72)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-11T20:00:49.950Z"},{"error":"Error: ripgrep exited with code null\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:706:914)\n    at emit (node:events:98:22)\n    at #maybeClose (node:child_process:778:16)\n    at #handleOnExit (node:child_process:532:72)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-11T22:10:59.341Z"},{"error":"RipgrepTimeoutError: Ripgrep search timed out after 20 seconds. The search may have matched files but did not complete in time. Try searching a more specific path or pattern.\n    at A (B:/~BUN/root/src/entrypoints/cli.js:709:242)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:709:456)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:706:985)\n    at emit (node:events:98:22)\n    at #maybeClose (node:child_process:778:16)\n    at #handleOnExit (node:child_process:532:72)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-11T22:10:59.343Z"},{"error":"Error: ripgrep exited with code null\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:706:914)\n    at emit (node:events:98:22)\n    at #maybeClose (node:child_process:778:16)\n    at #handleOnExit (node:child_process:532:72)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-11T22:10:59.974Z"},{"error":"RipgrepTimeoutError: Ripgrep search timed out after 20 seconds. The search may have matched files but did not complete in time. Try searching a more specific path or pattern.\n    at A (B:/~BUN/root/src/entrypoints/cli.js:709:242)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:709:456)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:706:985)\n    at emit (node:events:98:22)\n    at #maybeClose (node:child_process:778:16)\n    at #handleOnExit (node:child_process:532:72)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-11T22:10:59.974Z"},{"error":"Error: ripgrep exited with code null\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:706:914)\n    at emit (node:events:98:22)\n    at #maybeClose (node:child_process:778:16)\n    at #handleOnExit (node:child_process:532:72)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-11T22:11:00.246Z"},{"error":"RipgrepTimeoutError: Ripgrep search timed out after 20 seconds. The search may have matched files but did not complete in time. Try searching a more specific path or pattern.\n    at A (B:/~BUN/root/src/entrypoints/cli.js:709:242)\n    at <anonymou…
RAW_BUFFERClick to expand / collapse

Bug Description this is a ridiculous error that is blocking me from continuing my work. I pasted the terminal response from a package we're working on. > @coherenceos/[email protected] build

tsc -p tsconfig.json

npm notice npm notice package: @coherenceos/[email protected] npm notice Tarball Contents npm notice 1.1kB LICENSE npm notice 3.8kB README.md npm notice 672B dist/api.d.ts npm notice 1.9kB dist/api.js npm notice 31B dist/index.d.ts npm notice 2.6kB dist/index.js npm notice 246B dist/tools.d.ts npm notice 11.3kB dist/tools.js npm notice 1.2kB package.json npm notice Tarball Details npm notice name: @coherenceos/mcp-server npm error code E404 npm error 404 Not Found - PUT https://registry.npmjs.org/@coherenceos%2fmcp-server - Not found npm error 404 npm error 404 '@coherenceos/[email protected]' is not in this registry. npm error 404 npm error 404 Note that you can also install from a npm error 404 tarball, folder, http url, or git url. npm error A complete log of this run can be found in: C:\Users\Keith\AppData\Local\npm-cache_logs\2026-05-12T18_16_56_955Z-debug-0.log ⎿ API Error: Claude Code is unable to respond to this request, which appears to violate our Usage Policy (https://www.anthropic.com/legal/aup). This request triggered restrictions on violative cyber content and was blocked under Anthropic's Usage Policy. To request an adjustment pursuant to our Cyber Verification Program based on how you use Claude, fill out https://claude.com/form/cyber-use-case?token=[REDACTED] Please double press esc to edit your last message or start a new session for Claude Code to assist with a different task. If you are seeing this refusal repeatedly, try running /model claude-sonnet-4-20250514 to switch models.

 Request ID: req_011Cay8gyKTSCKih6vyd5VdT

Environment Info

  • Platform: win32
  • Terminal: windows-terminal
  • Version: 2.1.139
  • Feedback ID: 686915d8-4d26-45a5-9a5a-f01d77521f9c

Errors

[{"error":"Error: ripgrep exited with code null\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:706:914)\n    at emit (node:events:98:22)\n    at #maybeClose (node:child_process:778:16)\n    at #handleOnExit (node:child_process:532:72)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-11T20:00:49.950Z"},{"error":"Error: ripgrep exited with code null\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:706:914)\n    at emit (node:events:98:22)\n    at #maybeClose (node:child_process:778:16)\n    at #handleOnExit (node:child_process:532:72)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-11T22:10:59.341Z"},{"error":"RipgrepTimeoutError: Ripgrep search timed out after 20 seconds. The search may have matched files but did not complete in time. Try searching a more specific path or pattern.\n    at A (B:/~BUN/root/src/entrypoints/cli.js:709:242)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:709:456)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:706:985)\n    at emit (node:events:98:22)\n    at #maybeClose (node:child_process:778:16)\n    at #handleOnExit (node:child_process:532:72)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-11T22:10:59.343Z"},{"error":"Error: ripgrep exited with code null\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:706:914)\n    at emit (node:events:98:22)\n    at #maybeClose (node:child_process:778:16)\n    at #handleOnExit (node:child_process:532:72)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-11T22:10:59.974Z"},{"error":"RipgrepTimeoutError: Ripgrep search timed out after 20 seconds. The search may have matched files but did not complete in time. Try searching a more specific path or pattern.\n    at A (B:/~BUN/root/src/entrypoints/cli.js:709:242)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:709:456)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:706:985)\n    at emit (node:events:98:22)\n    at #maybeClose (node:child_process:778:16)\n    at #handleOnExit (node:child_process:532:72)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-11T22:10:59.974Z"},{"error":"Error: ripgrep exited with code null\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:706:914)\n    at emit (node:events:98:22)\n    at #maybeClose (node:child_process:778:16)\n    at #handleOnExit (node:child_process:532:72)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-11T22:11:00.246Z"},{"error":"RipgrepTimeoutError: Ripgrep search timed out after 20 seconds. The search may have matched files but did not complete in time. Try searching a more specific path or pattern.\n    at A (B:/~BUN/root/src/entrypoints/cli.js:709:242)\n    at <anonymou…

Note: Content was truncated.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING