Report #104217
[bug\_fix] pnpm: ERR\_PNPM\_NO\_PACKAGE\_MANIFEST or 'No package.json' in workspace root
Ensure a root \`package.json\` exists with \`"private": true\` and optionally \`"workspaces": \["packages/\*"\]\`. For pnpm workspaces, also create \`pnpm-workspace.yaml\` with the correct package paths.
Journey Context:
A developer set up a monorepo with pnpm but ran \`pnpm install\` from the root and got 'No package.json' error. They had deleted the root \`package.json\` accidentally. Recreating it with \`\{ "private": true, "workspaces": \["packages/\*"\] \}\` solved the issue. Later they found that pnpm requires \`pnpm-workspace.yaml\` even if using \`workspaces\` in package.json for proper hoisting. Adding that file resolved nested dependency issues.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-19T20:03:52.657112+00:00— report_created — created