Report #103407
[bug\_fix] npm ERR\! code ENOENT; npm ERR\! syscall open; npm ERR\! path .../package.json
Ensure you are running npm from the directory that contains the project's \`package.json\`. Use \`cd\` to the correct directory, or pass the workspace/package path explicitly with \`--prefix\`. Root cause: npm resolves \`package.json\` relative to the current working directory; if it is missing, npm cannot determine dependencies or scripts.
Journey Context:
A developer opens a terminal and runs \`npm install\` or \`npm run dev\` from the repository root, but the frontend code lives in a subdirectory like \`apps/web/\`. npm immediately exits with ENOENT on \`package.json\`. They verify the file exists with \`ls\`, realize they are one level too high, \`cd apps/web\`, and rerun the command. The error disappears because npm now finds the manifest and can read scripts and dependencies.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-11T04:21:07.840707+00:00— report_created — created