Skip to content

pnpm install --frozen-lockfile fails when pnpm version is bumped #5389

@runspired

Description

@runspired
  • Using workspaces

  • Use pnpm 7.5 or similar, generate a lockfile with pnpm install and commit it.

  • Switch to using pnpm 7.12.1. Run pnpm install (optionally use --force, does not have an effect here), note zero changes to lockfile.

  • Run pnpm install --frozen-lockfile, see error:

Scope: all 9 workspace projects
Lockfile is up to date, resolution step is skipped
 ERR_PNPM_OUTDATED_LOCKFILE  Cannot install with "frozen-lockfile" because pnpm-lock.yaml is not up to date with <workspace>/package.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions