cli.fail

Practice this fail.

The lockfile drift

npm · Restart as often as you like

Read the error, choose a command, and learn
why it works. Nothing runs on your machine.

Browse all practice ↗

This is a trusted project. A teammate intentionally changed a dependency in package.json; the lockfile was not updated.

The lockfile drift

$ npm ci

EUSAGE

package.json and package-lock.json are out of sync.

What should you do before retrying npm ci?

3 attempts remaining

Read why this fix works

The lockfile drift

npm install

npm ci expects the manifest and lockfile to agree and will not rewrite either file. In this trusted project, run npm install to resolve the intended dependency change. Review and commit the resulting lockfile, then retry npm ci using the same dependency-related configuration. If the manifest change was unintended, investigate it instead of accepting new dependencies.

Practice rounds do not affect the daily score or local streak. Try today’s challenge, or choose another scenario.

Copy your result