headroomlabs-ai/headroom · error · Error
${expected.tarball} package name mismatch: expected ${expect
Error message
${expected.tarball} package name mismatch: expected ${expected.name}, got ${pkg.name} What it means
Error "${expected.tarball} package name mismatch: expected ${expected.name}, got ${pkg.name}" thrown in headroomlabs-ai/headroom.
Source
Thrown at scripts/verify_npm_release_assets.mjs:114
cwd,
encoding: "utf8",
});
if (result.status !== 0) {
throw new Error(
`headroom-openclaw import smoke failed: ${
result.error?.message || result.stderr || result.stdout || "unknown error"
}`,
);
}
}
for (const expected of packages) {
const tarballPath = path.join(assetsDir, expected.tarball);
tarballPaths.set(expected.name, tarballPath);
const pkg = extractPackageJson(tarballPath);
if (pkg.name !== expected.name) {
throw new Error(`${expected.tarball} package name mismatch: expected ${expected.name}, got ${pkg.name}`);
}
if (pkg.version !== version) {
throw new Error(`${expected.tarball} version mismatch: expected ${version}, got ${pkg.version}`);
}
assertNoFileDependencies(pkg);
for (const [name, spec] of Object.entries(expected.dependencies || {})) {
const actual = pkg.dependencies?.[name];
if (actual !== spec) {
throw new Error(`${pkg.name} dependency ${name} mismatch: expected ${spec}, got ${actual}`);
}
}
if (expected.name === "headroom-openclaw") {
const distPkg = extractDistPackageJson(tarballPath);
if (distPkg.name !== expected.name) {
throw new Error(`${expected.tarball} dist package name mismatch: expected ${expected.name}, got ${distPkg.name}`);View on GitHub (pinned to 322425c43b)
Solutions
- Fix the package.json name field to match the expected package name ${expected.name}
- Verify you are verifying the correct tarball ${expected.tarball}
When it happens
Trigger: Raised by the npm release verifier when a packed tarball's package.json name does not match the expected package name for that asset.
Common situations: See trigger scenarios.
AI-assisted analysis of headroomlabs-ai/headroom@322425c43b (2026-08-15).
Data as JSON: /api/errors/1d820e49b1c47aed.
Report an issue: GitHub.