musistudio/claude-code-router · error · Error
${(result.stderr || result.stdout || `powershell.exe exited
Error message
${(result.stderr || result.stdout || `powershell.exe exited with ${result.status}`).trim()} What it means
Error "${(result.stderr || result.stdout || `powershell.exe exited with ${result.status}`).trim()}" thrown in musistudio/claude-code-router.
Source
Thrown at packages/core/src/profiles/launch-service.ts:1963
" Write-Output 'UNCHANGED'",
"}"
].join("\n");
const result = spawnSync(windowsSystemCommand("powershell.exe"), [
"-NoProfile",
"-NonInteractive",
"-ExecutionPolicy",
"Bypass",
"-Command",
script
], {
encoding: "utf8",
windowsHide: true
});
if (result.error) {
throw result.error;
}
if (result.status !== 0) {
throw new Error((result.stderr || result.stdout || `powershell.exe exited with ${result.status}`).trim());
}
return result.stdout.trim().split(/\r?\n/).includes("CHANGED");
}
function ensurePosixShellPath(binDir: string): void {
const shellName = path.basename(process.env.SHELL || "").toLowerCase();
if (shellName.includes("fish")) {
ensureFishPathBlock(path.join(os.homedir(), ".config", "fish", "conf.d", "ccr.fish"), binDir);
return;
}
ensureShellRcPathBlock(preferredShellRcFile(shellName), binDir);
}
function preferredShellRcFile(shellName = path.basename(process.env.SHELL || "").toLowerCase()): string {
const home = os.homedir();
if (shellName.includes("zsh")) {
return path.join(home, ".zshrc");
}View on GitHub (pinned to 99f24806c6)
When it happens
Trigger: Thrown at packages/core/src/profiles/launch-service.ts:1963 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of musistudio/claude-code-router@99f24806c6 (2026-08-27).
Data as JSON: /api/errors/0ff44c91503739f3.
Report an issue: GitHub.