What is a lockfile?

A lockfile records the exact version of every installed package, including nested ones.

Last updated November 25, 2026

The short version

A lockfile records the exact version of every installed package, including nested ones. It keeps builds reproducible, so production gets the same code you tested. Commit it to your repository. Commands such as npm ci fail if it disagrees with package.json, which catches accidental drift.

On Reverhost

The install step in your Dockerfile, such as npm ci in the Node.js template, installs exactly what the lockfile lists. Learn more.

Start for free

Install the skill, choose Global or Local, then tell your agent to deploy. No credit card, no config files.

$npx ezhst skill install