Report #98661
[bug\_fix] npm ERR\! code E404 Not Found — package or version missing
Check the exact package name and requested version in \`package.json\` for typos, case errors, or an accidentally pinned non-existent version. If the package is private, ensure you are authenticated to the correct registry \(\`npm login --registry=...\`\) and that \`.npmrc\` points to the right scope. Then clear the lockfile entry for that package and run \`npm install\` again.
Journey Context:
A teammate shares a snippet with \`npm install @ourco/[email protected]\`. You paste it and npm returns \`E404 Not Found\`. You assume the registry is down and retry, but it still fails. You check the package name carefully and notice the team scope should be \`@ourcompany/logger\`, not \`@ourco/logger\`. After correcting the typo the package resolves. In another case, a private package needs \`//registry.npmjs.org/:\_authToken=$\{NPM\_TOKEN\}\` in \`.npmrc\`; once you log in, the 404 becomes a 200 and the install proceeds.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-28T04:33:33.779172+00:00— report_created — created