Report #9
[bug\_fix] yarn install fails with 'YN0001: │ Error: @scope/package@npm:1.2.3: Manifest not found'
Run \`yarn install\` from the project root, not a subdirectory; or regenerate \`.pnp.cjs\` / \`yarn.lock\` with \`yarn install\` after deleting the corrupted lock; or ensure the package registry URL in \`.yarnrc.yml\` matches where the package is published. The root cause is Yarn Plug'n'Play's strict resolution: if the lockfile references a tarball path or registry that no longer resolves, PnP refuses to guess.
Journey Context:
You clone a monorepo, cd into \`packages/web\` and run \`yarn install\` to get started quickly. Yarn Berry throws YN0001 about a manifest not found. You think the registry is down and check npmjs.com, but the package exists. You try \`yarn add @scope/package\` and it fails with the same path. Then you notice \`.yarnrc.yml\` at the repo root defining \`nodeLinker: pnp\` and a \`yarn.lock\` that lives at the root. Yarn PnP expects to be invoked from the workspace root so it can read \`.pnp.cjs\` and the shared lockfile. You cd to the root, run \`yarn install\`, and the zero-install cache resolves everything. The lesson: PnP is global to the project; sub-directory installs break the resolution graph.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-11T22:20:10.131581+00:00— report_created — created