function getStepLabel(step: UpdateStepInfo): string { return STEP_LABELS[step.name] ?? step.name;
}
export function inferUpdateFailureHints(result: UpdateRunResult): string[] { if (result.status !== "error") { return [];
} if (result.reason === "pnpm-corepack-missing") { return [ "This pnpm checkout could not auto-enable pnpm because corepack is missing.", "Install pnpm manually or install Node with corepack available, then rerun the update command.",
];
} if (result.reason === "pnpm-corepack-enable-failed") { return [ "This pnpm checkout could not auto-enable pnpm via corepack.", "Run `corepack enable` manually or install pnpm manually, then rerun the update command.",
];
} if (result.reason === "pnpm-npm-bootstrap-failed") { return [ "This pnpm checkout could not bootstrap pnpm from npm automatically.", "Install pnpm manually, then rerun the update command.",
];
} if (result.reason === "preferred-manager-unavailable") { return [ "This checkout requires its declared package manager and the updater could not find it.", "Install the missing package manager manually, then rerun the update command.",
];
} if (result.mode !== "npm") { return [];
} const failedStep = [...result.steps].toReversed().find((step) => step.exitCode !== 0); if (!failedStep) { return [];
}
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.13Bemerkung:
(vorverarbeitet am 2026-06-07)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.