diegosouzapw/OmniRoute · error
Sudo password required to install Tailscale
Error message
Sudo password required to install Tailscale
What it means
Error "Sudo password required to install Tailscale" thrown in diegosouzapw/OmniRoute.
Source
Thrown at src/lib/tailscaleTunnel.ts:1003
const child = spawn("brew", ["install", "tailscale"], {
windowsHide: true,
stdio: ["ignore", "pipe", "pipe"],
env: buildExecEnv(),
});
const log = createStreamLogger(onProgress);
child.stdout.on("data", log);
child.stderr.on("data", log);
child.on("close", (code) => {
if (code === 0) resolve();
else reject(new Error(`brew install failed with code ${code}`));
});
child.on("error", reject);
});
return;
}
if (!password.trim()) {
throw new Error("Sudo password required to install Tailscale");
}
const pkgUrl = "https://pkgs.tailscale.com/stable/tailscale-latest.pkg";
const pkgPath = path.join(os.tmpdir(), "tailscale.pkg");
await new Promise<void>((resolve, reject) => {
const child = spawn("curl", ["-fL", "--progress-bar", pkgUrl, "-o", pkgPath], {
windowsHide: true,
stdio: ["ignore", "pipe", "pipe"],
env: buildExecEnv(),
});
child.stderr.on("data", createStreamLogger(onProgress));
child.on("close", (code) => {
if (code === 0) resolve();
else reject(new Error("Failed to download the Tailscale package"));
});
child.on("error", reject);
});View on GitHub (pinned to a179ffed5b)
When it happens
Trigger: Thrown at src/lib/tailscaleTunnel.ts:1003 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/e6302c7501ea4e22.
Report an issue: GitHub.