{"record":{"id":"a2b58e13ca950210","repo":"yarnpkg/yarn","slug":"manifestnameblacklisted","errorCode":null,"errorMessage":"manifestNameBlacklisted","messagePattern":"manifestNameBlacklisted","errorType":"validation","errorClass":"MessageError","httpStatus":null,"severity":"error","filePath":"src/util/normalize-manifest/validate.js","lineNumber":73,"sourceCode":"  if (typeof name === 'string') {\n    if (isRoot && isBuiltinModule(name)) {\n      warn(reporter.lang('manifestBuiltinModule', name));\n    }\n\n    // cannot start with a dot\n    if (name[0] === '.') {\n      throw new MessageError(reporter.lang('manifestNameDot'));\n    }\n\n    // cannot contain the following characters\n    if (!isValidPackageName(name)) {\n      throw new MessageError(reporter.lang('manifestNameIllegalChars'));\n    }\n\n    // cannot equal node_modules or favicon.ico\n    const lower = name.toLowerCase();\n    if (lower === 'node_modules' || lower === 'favicon.ico') {\n      throw new MessageError(reporter.lang('manifestNameBlacklisted'));\n    }\n  }\n\n  // validate license\n  if (isRoot && !info.private) {\n    if (typeof info.license === 'string') {\n      const license = info.license.replace(/\\*$/g, '');\n      if (!isValidLicense(license)) {\n        warn(reporter.lang('manifestLicenseInvalid'));\n      }\n    } else {\n      warn(reporter.lang('manifestLicenseNone'));\n    }\n  }\n\n  // validate strings\n  for (const key of strings) {\n    const val = info[key];","sourceCodeStart":55,"sourceCodeEnd":91,"githubUrl":"https://github.com/yarnpkg/yarn/blob/c2dda503f3759b5be5f0e24ecd9cf5c97a540147/src/util/normalize-manifest/validate.js#L55-L91","documentation":"Error \"manifestNameBlacklisted\" thrown in yarnpkg/yarn.","triggerScenarios":"A manifest name matches the reserved/blacklisted names list during normalization validation in src/util/normalize-manifest/validate.js.","commonSituations":"Occurs when package.json 'name' is a reserved word such as 'node_modules' or 'favicon.ico'.","solutions":["Rename the package: \"node_modules\" and \"favicon.ico\" are reserved names and cannot be used. Pick any other valid name in package.json."],"exampleFix":"\"name\": \"node_modules\" -> \"my-lib\"","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c2dda503f3759b5be5f0e24ecd9cf5c97a540147","analyzedAt":"2026-08-13T04:17:06.305Z","schemaVersion":2},"datasetVersion":"2026-08-13T09:17:06.757Z"}