diegosouzapw/OmniRoute · error · Error

No binary found for . Run installTool(' ') or set…

Error message

No binary found for ${tool}. Run installTool('${tool}') or set binaryPath in version manager.

What it means

Binary-resolution failure in startTool: neither the version-manager record for the tool nor getCurrentBinaryPath() produced a binary path — the tool was never installed (or its binaryPath was never set). The message tells you the two remedies: run installTool(tool) or configure binaryPath manually; the process cannot be started without an executable.

Solutions

  1. Run installTool for the tool to download and register the binary
  2. Set binaryPath in version manager settings to point at an existing binary
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at src/lib/versionManager/index.ts:47 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25). Data as JSON: /api/errors/30e653ce05a44bb7. Report an issue: GitHub.

Appendix: source

Thrown at src/lib/versionManager/index.ts:47

    tool,
    installedVersion: targetVersion,
    binaryPath,
    status: "installed",
  });

  return { installedVersion: targetVersion, binaryPath };
}

export async function startTool(tool: string): Promise<{
  pid: number;
  port: number;
  health?: Awaited<ReturnType<typeof checkHealth>>;
}> {
  const info = await getVersionManagerTool(tool);
  const binaryPath = info?.binaryPath || (await getCurrentBinaryPath());

  if (!binaryPath) {
    throw new Error(
      `No binary found for ${tool}. Run installTool('${tool}') or set binaryPath in version manager.`
    );
  }

  const { pid, port } = await startProcess(binaryPath, info?.port || undefined);

  const url = `http://127.0.0.1:${port}`;
  startMonitoring(tool, url);

  const health = await checkHealth(url);

  return { pid, port, health };
}

export async function stopTool(tool: string): Promise<void> {
  const info = await getVersionManagerTool(tool);

  stopMonitoring(tool);

View on GitHub (pinned to a179ffed5b)