{"record":{"id":"881d388b06fdc0c9","repo":"musistudio/claude-code-router","slug":"ccr-cli-runtime-was-not-found-rebuild-or-reinstal","errorCode":null,"errorMessage":"CCR CLI runtime was not found. Rebuild or reinstall CCR and try again. Checked: ${candidates.join(\", \")}","messagePattern":"CCR CLI runtime was not found\\. Rebuild or reinstall CCR and try again\\. Checked: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/core/src/profiles/launch-service.ts","lineNumber":1763,"sourceCode":"    source.includes(\"ELECTRON_RUN_AS_NODE=1\") &&\n    source.includes(\"CCR_NODE_BIN\");\n}\n\nfunction findBundledCcrCliSource(): string {\n  const resourcesPath = (process as NodeJS.Process & { resourcesPath?: string }).resourcesPath;\n  const candidates = [\n    path.join(__dirname, \"cli.js\"),\n    ...(resourcesPath\n      ? [\n          path.join(resourcesPath, \"app.asar\", \"dist\", \"main\", \"cli.js\"),\n          path.join(resourcesPath, \"app\", \"dist\", \"main\", \"cli.js\")\n        ]\n      : []),\n    path.join(process.cwd(), \"dist\", \"main\", \"cli.js\")\n  ];\n  const source = candidates.find((candidate) => existsSync(candidate));\n  if (!source) {\n    throw new Error(`CCR CLI runtime was not found. Rebuild or reinstall CCR and try again. Checked: ${candidates.join(\", \")}`);\n  }\n  return source;\n}\n\nfunction ensureBundledToolHubMcpRuntime(file: string): void {\n  const source = bundledToolHubMcpEntryPathCandidates().find((candidate) => existsSync(candidate));\n  if (!source) {\n    return;\n  }\n  writeFileIfChanged(file, readFileSync(source, \"utf8\"));\n  chmodSafe(file);\n}\n\nfunction posixCcrLauncher(runtimeFile: string): string {\n  const nodePath = bundledNodePath();\n  return [\n    \"#!/bin/sh\",\n    `${desktopCliCommandNameEnv}=${shQuote(desktopCliCommandName)}`,","sourceCodeStart":1745,"sourceCodeEnd":1781,"githubUrl":"https://github.com/musistudio/claude-code-router/blob/99f24806c6a2c660b16e53e95211c517448a6c90/packages/core/src/profiles/launch-service.ts#L1745-L1781","documentation":"Error \"CCR CLI runtime was not found. Rebuild or reinstall CCR and try again. Checked: ${candidates.join(\", \")}\" thrown in musistudio/claude-code-router.","triggerScenarios":"Thrown at packages/core/src/profiles/launch-service.ts:1763 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"99f24806c6a2c660b16e53e95211c517448a6c90","analyzedAt":"2026-08-27T04:11:01.184Z","schemaVersion":2},"datasetVersion":"2026-08-27T08:17:20.692Z"}