concrete/dependencies/lockfile-stale
The lockfile does not satisfy `package.json`.
The lockfile does not satisfy package.json.
Graded by the dependencies stage of concrete check, in the tree venue. A violation reports this id and the file it failed at — see every rule and concrete check.
Reason
A stale lockfile is one that no longer satisfies package.json — a dependency added or a
range widened by hand, with no install since. It works on your machine, where the modules
are already there, and fails everywhere the tree is built from scratch: the platform's
re-check, a colleague's clone, the build behind a publish.
The workspace is the unit that has to be
reproducible, and the lockfile is what makes it so.
Fix
Run an install and commit the updated lockfile. Never edit either file by hand to make the two agree.
Before and after
$ npm pkg set dependencies.clsx=^2.1.0 # package.json edited, nothing installed
$ concrete check
✗ concrete/dependencies/lockfile-stale package-lock.json$ npm install clsx
$ git add package.json package-lock.json
$ concrete check