claude-code - 💡(How to fix) Fix [BUG] Claude Code backend runs "npx ccb oauth usage --json" — resolves to wrong npm package, fails [1 participants]

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…
GitHub stats
anthropics/claude-code#55047Fetched 2026-05-01 05:47:37
View on GitHub
Comments
0
Participants
1
Timeline
5
Reactions
0
Author
Participants
Timeline (top)
labeled ×5

Error Message

Error Messages/Logs

npm error could not determine executable to run npm error A complete log of this run can be found in: C:\Users<username>\AppData\Local\npm-cache_logs\2026-04-30T15_14_05_444Z-debug-0.log 17 error could not determine executable to run 5. Error: "could not determine executable to run" JetBrains built-in terminal (IntelliJ/PhpStorm) — but the error originates from the Claude Code GUI plugin itself, not from a terminal session.

Code Example

Command failed: npx ccb oauth usage --json
  npm error could not determine executable to run
  npm error A complete log of this run can be found in: C:\Users\<username>\AppData\Local\npm-cache\_logs\2026-04-30T15_14_05_444Z-debug-0.log

  Debug log (abbreviated):
  7 verbose title npm exec ccb oauth usage --json
  8 verbose argv "exec" "--" "ccb" "oauth" "usage" "--json"
  14 http fetch GET 200 https://registry.npmjs.org/ccb 189ms (cache revalidated)
  16 verbose pkgid ccb@0.2.1
  17 error could not determine executable to run
  18 verbose cwd C:\Users\<username>\AppData\Local\Temp\claude-code-backend
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

When using Claude Code via the GUI (PhpStorm IDE plugin), the backend attempts to run npx ccb oauth usage --json. The Claude Code backend (powering the JetBrains/PhpStorm IDE plugin) attempts to run npx ccb oauth usage --json to check OAuth usage. However, there is no ccb binary in @anthropic-ai/claude-code. npx resolves ccb to an unrelated third-party package (https://www.npmjs.com/package/ccb) which has no bin entry, causing a failure on startup. Additionally, the Account section does not display account details, likely due to the same failed ccb command.

What Should Happen?

The OAuth usage check should either use the correct executable name (e.g., claude auth ...) or not attempt to run ccb at all. The backend should not fetch an unrelated npm package.

Error Messages/Logs

Command failed: npx ccb oauth usage --json
  npm error could not determine executable to run
  npm error A complete log of this run can be found in: C:\Users\<username>\AppData\Local\npm-cache\_logs\2026-04-30T15_14_05_444Z-debug-0.log

  Debug log (abbreviated):
  7 verbose title npm exec ccb oauth usage --json
  8 verbose argv "exec" "--" "ccb" "oauth" "usage" "--json"
  14 http fetch GET 200 https://registry.npmjs.org/ccb 189ms (cache revalidated)
  16 verbose pkgid [email protected]
  17 error could not determine executable to run
  18 verbose cwd C:\Users\<username>\AppData\Local\Temp\claude-code-backend

Steps to Reproduce

  1. Install Claude Code CLI: npm install -g @anthropic-ai/[email protected]
  2. Open PhpStorm with the Claude Code GUI plugin (latest version from JetBrains Marketplace)
  3. Navigate to the Usage tab in the Claude Code GUI panel
  4. npx fetches the unrelated [email protected] from the npm registry instead of an Anthropic-owned package
  5. Error: "could not determine executable to run"

Environment: Windows 11 Enterprise 10.0.26200, Node v22.14.0, npm/npx 10.9.2, Claude Code CLI @anthropic-ai/[email protected]

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.123 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Other

Additional Information

JetBrains built-in terminal (IntelliJ/PhpStorm) — but the error originates from the Claude Code GUI plugin itself, not from a terminal session.

extent analysis

TL;DR

The issue can be fixed by updating the Claude Code backend to use the correct executable name, such as claude auth, instead of ccb.

Guidance

  • The error occurs because npx resolves ccb to an unrelated third-party package, which has no bin entry, causing a failure on startup.
  • To fix this, the Claude Code backend should be updated to use the correct executable name, such as claude auth, instead of ccb.
  • The Account section not displaying account details is likely due to the same failed ccb command, and should be resolved once the executable name is corrected.
  • The issue can be verified by checking the npm logs and the Claude Code GUI plugin's behavior after updating the executable name.

Example

No code snippet is provided as the issue is related to the configuration of the Claude Code backend and not a specific code snippet.

Notes

The issue is a regression, and the previous working version is not specified. The fix should be applied to the Claude Code backend, and the correct executable name should be used instead of ccb.

Recommendation

Apply workaround: update the Claude Code backend to use the correct executable name, such as claude auth, instead of ccb, to resolve the issue. This is recommended because the issue is caused by a misconfiguration, and updating the executable name should resolve the issue without requiring an upgrade to a fixed version.

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

claude-code - 💡(How to fix) Fix [BUG] Claude Code backend runs "npx ccb oauth usage --json" — resolves to wrong npm package, fails [1 participants]