Lockfile

You might say

I only added one small package—why did pnpm-lock.yaml change by hundreds of lines, and can I just delete it?

A generated file that records the exact resolved dependency versions and integrity hashes so every machine installs the same tree.When teammates or CI clone a repo, package.json often lists version ranges while the lockfile pins every direct and nested package to an exact version. Update it through the package manager rather than editing or deleting it; it pins package versions, not your local Node.js version or environment variables.
package-lock.jsonpnpm-lock.yamlyarn.lock

You can say this to an AI Agent

Ready to paste into Cursor, Claude Code, or Codex
Structured AI Agent prompt

Dependency installation says the lockfile does not match package.json. Do not hand-edit or delete the lockfile; update it with the project's current package manager, make sure no second lockfile from another manager was introduced, then rerun install and checks and report which packages changed.

Want your Agent to translate plain-language UI ideas automatically?Install free VibeHub Skill →
Oil UI Pro. Push AI’s design skills to the limit. Usability, existing projects and stricter review.
Further reading