Skip to content

deploy ERR_PNPM_LOCKFILE_CONFIG_MISMATCH with overrides #9283

@hartbit

Description

@hartbit

Verify latest release

  • I verified that the issue exists in the latest pnpm release

pnpm version

v10.6.3

Which area(s) of pnpm are affected? (leave empty if unsure)

Lockfile

Link to the code that reproduces this issue or a replay of the bug

https://github.com/hartbit/pnpm-deploy-lockfile-overrides

Reproduction steps

Clone the repository and execute the following commands:

$ pnpm i
$ pnpm --filter=a deploy --prod dist

Describe the Bug

PNPM outputs the following error:

 ERR_PNPM_LOCKFILE_CONFIG_MISMATCH  Cannot proceed with the frozen installation. The current "overrides" configuration doesn't match the value found in the lockfile

Expected Behavior

I expect the deploy not to fail as the overrides configuration is identical between package.json and pnpm-lock.yaml and even if it were, pnpm i should guarantee it is the case.

Which Node.js version are you using?

22.14.0

Which operating systems have you used?

  • macOS
  • Windows
  • Linux

If your OS is a Linux based, which one it is? (Include the version if relevant)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions