{"record":{"id":"5ac05595ee4c6b8e","repo":"remotion-dev/remotion","slug":"unsupported-platform-process-platform","errorCode":null,"errorMessage":"Unsupported platform: ${process.platform}","messagePattern":"Unsupported platform: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/install-whisper-cpp/src/install-whisper-cpp.ts","lineNumber":217,"sourceCode":"\t\t\tversion,\n\t\t\tto,\n\t\t\tprintOutput,\n\t\t\tsignal: signal ?? null,\n\t\t});\n\t\treturn Promise.resolve({alreadyExisted: false});\n\t}\n\n\tif (process.platform === 'win32') {\n\t\tawait installForWindows({\n\t\t\tversion,\n\t\t\tto,\n\t\t\tprintOutput,\n\t\t\tsignal: signal ?? null,\n\t\t});\n\t\treturn Promise.resolve({alreadyExisted: false});\n\t}\n\n\tthrow new Error(`Unsupported platform: ${process.platform}`);\n};\n","sourceCodeStart":199,"sourceCodeEnd":219,"githubUrl":"https://github.com/remotion-dev/remotion/blob/78fe4bb3fdb5a2cd68724393d63cb223db333fa7/packages/install-whisper-cpp/src/install-whisper-cpp.ts#L199-L219","documentation":"Thrown by `installWhisperCpu` when `process.platform` is neither 'win32', 'darwin', nor 'linux' (the only platforms for which Remotion provides or builds whisper.cpp binaries). Any other platform value falls through to this terminal error.","triggerScenarios":"Running the install on FreeBSD, AIX, SunOS, or any other Unix variant. The function branches on platform and the final `throw` is the catch-all after the supported branches.","commonSituations":"Running inside an unusual container or CI image reported as an unsupported platform; a custom Node.js build with a non-standard platform string; attempting to use the package on a niche OS.","solutions":["Run the install on a supported OS: Linux, macOS, or Windows.","If you must use another platform, build whisper.cpp manually from source and point `transcribe` at the resulting executable path.","Verify with `process.platform` what Node.js reports for your environment."],"exampleFix":null,"handlingStrategy":"validation","validationCode":"const SUPPORTED = new Set(['win32', 'darwin', 'linux']);\nif (!SUPPORTED.has(process.platform)) {\n  throw new Error(`@remotion/install-whisper-cpp does not support platform ${process.platform}. Use Linux, macOS, or Windows.`);\n}","typeGuard":"function isSupportedPlatform(p: string): boolean {\n  return p === 'win32' || p === 'darwin' || p === 'linux';\n}","tryCatchPattern":null,"preventionTips":["Run installWhisperCpu on Linux, macOS, or Windows only.","For other platforms, build whisper.cpp from source and supply the executable path to transcribe directly.","Log process.platform in CI to confirm the runner reports a supported value."],"tags":["whisper","platform","install"],"backgroundTag":null,"analyzedSha":"78fe4bb3fdb5a2cd68724393d63cb223db333fa7","analyzedAt":"2026-08-12T17:18:50.444Z","schemaVersion":2},"datasetVersion":"2026-08-12T18:17:37.767Z"}