yarnpkg/yarn · error · MessageError
manifestNameBlacklisted
Error message
manifestNameBlacklisted
What it means
Error "manifestNameBlacklisted" thrown in yarnpkg/yarn.
Source
Thrown at src/util/normalize-manifest/validate.js:73
if (typeof name === 'string') {
if (isRoot && isBuiltinModule(name)) {
warn(reporter.lang('manifestBuiltinModule', name));
}
// cannot start with a dot
if (name[0] === '.') {
throw new MessageError(reporter.lang('manifestNameDot'));
}
// cannot contain the following characters
if (!isValidPackageName(name)) {
throw new MessageError(reporter.lang('manifestNameIllegalChars'));
}
// cannot equal node_modules or favicon.ico
const lower = name.toLowerCase();
if (lower === 'node_modules' || lower === 'favicon.ico') {
throw new MessageError(reporter.lang('manifestNameBlacklisted'));
}
}
// validate license
if (isRoot && !info.private) {
if (typeof info.license === 'string') {
const license = info.license.replace(/\*$/g, '');
if (!isValidLicense(license)) {
warn(reporter.lang('manifestLicenseInvalid'));
}
} else {
warn(reporter.lang('manifestLicenseNone'));
}
}
// validate strings
for (const key of strings) {
const val = info[key];View on GitHub (pinned to c2dda503f3)
Solutions
- Rename the package: "node_modules" and "favicon.ico" are reserved names and cannot be used. Pick any other valid name in package.json.
Example fix
"name": "node_modules" -> "my-lib"
When it happens
Trigger: A manifest name matches the reserved/blacklisted names list during normalization validation in src/util/normalize-manifest/validate.js.
Common situations: Occurs when package.json 'name' is a reserved word such as 'node_modules' or 'favicon.ico'.
AI-assisted analysis of yarnpkg/yarn@c2dda503f3 (2026-08-13).
Data as JSON: /api/errors/a2b58e13ca950210.
Report an issue: GitHub.