Lockfile (install vs ci) Playground

The receipt on Dodi’s spike: package-lock.json as npm writes it. When does npm install use it, what does npm ci say to a lock out of sync, and what happens to…

Why it matters

"Works on my machine" most often starts here: dependency versions that quietly differ. A committed lock plus npm ci in CI makes your laptop, your friend’s, the CI and the production server install exactly the same tree, and refuse a tarball whose contents changed.

The key idea

A range is a limit; the lock is the choice, fingerprint included

Common mistakes

Try it in this playground