diegosouzapw/OmniRoute · error

Unsupported platform for Tailscale install

Error message

Unsupported platform for Tailscale install: ${os.platform()}

What it means

Platform support gate at the top of installTailscale: isSupportedPlatform() returned false, and os.platform() is embedded to show which platform was rejected. No install recipe exists for that platform (supported set is typically darwin/linux/win32), so the install is refused before any download or privilege check.

Solutions

  1. Install Tailscale manually using the platform's official instructions
  2. File a request to add support for the platform
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at src/lib/tailscaleTunnel.ts:1164 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/12705eddf4f82e0a. Report an issue: GitHub.

Appendix: source

Thrown at src/lib/tailscaleTunnel.ts:1164

      } catch {
        // Ignore cleanup errors.
      }
      if (code === 0) resolve();
      else reject(new Error(`msiexec exited with code ${code}`));
    });
    child.on("error", reject);
  });
}

export async function installTailscale({
  sudoPassword,
  onProgress,
}: {
  sudoPassword?: string;
  onProgress?: (message: string) => void;
} = {}) {
  if (!isSupportedPlatform()) {
    throw new Error(`Unsupported platform for Tailscale install: ${os.platform()}`);
  }

  const password = toNonEmptyString(sudoPassword) || getCachedPassword() || "";
  if (password) {
    setCachedPassword(password);
  }

  onProgress?.("Checking existing Tailscale installation...");
  const existingBinary = await resolveBinary();
  if (existingBinary.binaryPath) {
    onProgress?.("Tailscale is already installed.");
  } else if (getCurrentPlatform() === "win32") {
    onProgress?.("Downloading and installing Tailscale for Windows...");
    await installTailscaleWindows(onProgress);
  } else if (getCurrentPlatform() === "darwin") {
    onProgress?.("Installing Tailscale on macOS...");
    await installTailscaleMac(password, onProgress);
  } else if (getCurrentPlatform() === "linux") {

View on GitHub (pinned to a179ffed5b)