Report #76978
[bug\_fix] ENOENT: no such file or directory, lstat '/path/to/npm-cache/\_cacache/content-v2/...' \(corrupted npm cache\)
Run npm cache clean --force to purge the corrupted cache entries, then delete node\_modules and package-lock.json, and run npm install again.
Journey Context:
Developer runs npm install and gets cryptic ENOENT errors pointing deep into the npm cache directory, often mentioning content-v2 or tmp directories. Sometimes accompanied by EINTEGRITY errors about checksums not matching. Developer tries deleting node\_modules and reinstalling, but error persists because the corrupted tarball is in the global cache. Realizing the cache is the problem, running npm cache verify shows errors, or clean --force wipes it. After clearing cache, fresh install works.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T11:48:13.168188+00:00— report_created — created