What is happening
A matching package name and version does not prove identical content. Recovery separates transport truncation, cache corruption, registry replacement, gzip damage, tar damage, and a source package that was published incomplete.
npm package recovery
npm packages are published as .tgz files containing a package directory. Registry metadata and lockfiles can record SHA-512 integrity and legacy SHA-1 values, while the content-addressable cache may retain another verified copy.
Understand the symptom
A matching package name and version does not prove identical content. Recovery separates transport truncation, cache corruption, registry replacement, gzip damage, tar damage, and a source package that was published incomplete.
What you may see
Downloaded bytes do not match the expected integrity value.
The tarball transfer or stored object may be truncated.
Inner member metadata or payload is damaged.
Its cache or proxy may hold a corrupt object.
Protect the source
Preserve content-addressed objects first.
Keep exact resolved URLs and integrity fields.
Validate provenance before execution.
Do this now
Compare every local, cache, registry, and CI copy.
Save resolved URLs, integrity, shasum, version, and timestamps.
Keep registry, proxy, cache, and extraction errors.
A clean pack output may help validate expected files.
NEPFOSYS process
NEPFOSYS compares lockfiles, registry metadata, cache keys, hashes, and tarballs.
Gzip and tar structures are tested from copies to locate damage.
Recovered files are compared with source, manifests, integrity values, and trusted releases.
A clear next step
Start a case with the exact symptoms, incident timeline, prior attempts, encryption details, and the files that matter most. NEPFOSYS will route the case to the appropriate DFW intake or nationwide mail-in path.
Start with a case reviewQuestions, answered
No. Truncation, proxy, cache, registry, or storage errors can also change bytes.
Yes. Preserve it before cleanup or verification garbage collection.
That changes resolved metadata and should wait until evidence is saved.
DFW local · Nationwide mail-in