slint-ui/slint · error · Error
${cmd} ${args.join(" ")} failed (${e.code}):\n${e.stdout}\n$
Error message
${cmd} ${args.join(" ")} failed (${e.code}):\n${e.stdout}\n${e.stderr} What it means
Error "${cmd} ${args.join(" ")} failed (${e.code}):\n${e.stdout}\n${e.stderr}" thrown in slint-ui/slint.
Source
Thrown at api/node/scripts/packaging.mts:70
export async function run(
cmd: string,
args: string[],
opts: { cwd?: string; env?: NodeJS.ProcessEnv } = {},
): Promise<RunResult> {
try {
const { stdout, stderr } = await execFileAsync(cmd, args, {
encoding: "utf8",
maxBuffer: 64 * 1024 * 1024,
// npm/npx/pnpm are .cmd shims on Windows, which execFile cannot launch
// directly; run through the shell there. (The args below are package
// names and ./-relative paths, so no extra quoting is needed.)
shell: process.platform === "win32",
...opts,
});
return { stdout, stderr };
} catch (error) {
const e = error as { stdout?: string; stderr?: string; code?: number };
throw new Error(
`${cmd} ${args.join(" ")} failed (${e.code}):\n${e.stdout}\n${e.stderr}`,
);
}
}
function editManifest(
file: string,
edit: (manifest: Record<string, any>) => void,
): void {
const manifest = JSON.parse(readFileSync(file, "utf8"));
edit(manifest);
writeFileSync(file, `${JSON.stringify(manifest, null, 2)}\n`);
}
/** Pack a single platform's prebuilt native binary into an npm package tarball. */
export async function packBinary(opts: {
config: string; // napi binaries config (binaries.json / binaries-dev.json)
target: string; // napi-rs platform suffix, e.g. linux-x64-gnuView on GitHub (pinned to 3fd8f2ec03)
Solutions
- Inspect the printed stdout and stderr of the failed command to find the root cause.
- Verify that the invoked tool is installed and available on PATH.
When it happens
Trigger: Thrown at api/node/scripts/packaging.mts:70 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of slint-ui/slint@3fd8f2ec03 (2026-08-19).
Data as JSON: /api/errors/084c4fc18c4ce7f8.
Report an issue: GitHub.