npm ci: package.json and package-lock.json are not in sync

A dependency changed without the lockfile being updated, and the RUN npm ci line in your Dockerfile refuses to install.

Last updated November 25, 2026

The error

npm error `npm ci` can only install packages when your package.json and package-lock.json are in sync.

Why it happens

A dependency changed without the lockfile being updated, and the RUN npm ci line in your Dockerfile refuses to install.

How to fix it

Regenerate the lockfile locally and deploy again.

rm -rf node_modules package-lock.json
npm install
ezhst deploy

Still stuck

Read the build log and runtime logs, or browse all errors.

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