npm
npm ci package.json and lockfile are not in sync
npm ci performs a frozen installation. It refuses to repair a missing or inconsistent lockfile, so a manifest change that was not accompanied by the correct lockfile update breaks clean installs.
npm
npm ci performs a frozen installation. It refuses to repair a missing or inconsistent lockfile, so a manifest change that was not accompanied by the correct lockfile update breaks clean installs.
Observed message
npm ci can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync.
Why it happens
How to fix it
Official reference
npm official documentationRelated errors
Explore more