oven-sh/bun · error
Unsupported architecture: ${string}
Error message
Unsupported architecture: ${string} What it means
Error "Unsupported architecture: ${string}" thrown in oven-sh/bun.
Source
Thrown at scripts/utils.mjs:1393
/**
* @returns {"darwin" | "linux" | "windows" | "freebsd"}
*/
export function getOs() {
return parseOs(process.platform);
}
/**
* @param {string} string
* @returns {"x64" | "aarch64"}
*/
export function parseArch(string) {
if (/x64|amd64|x86_64/i.test(string)) {
return "x64";
}
if (/arm64|aarch64/i.test(string)) {
return "aarch64";
}
throw new Error(`Unsupported architecture: ${string}`);
}
/**
* @returns {"x64" | "aarch64"}
*/
export function getArch() {
return parseArch(process.arch);
}
/**
* @returns {string | undefined}
*/
export function getKernel() {
if (isWindows) {
return;
}
const kernel = release();View on GitHub (pinned to 8c5296ac45)
When it happens
Trigger: Thrown at scripts/utils.mjs:1393 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of oven-sh/bun@8c5296ac45 (2026-08-16).
Data as JSON: /api/errors/50d780839101e506.
Report an issue: GitHub.