Skip to content

package.json has no packageManager field — pnpm lockfile churns across pnpm versions #1209

Description

@RUKAYAT-CODER

CI pins pnpm 11 (pnpm/action-setup with version: 11) but package.json has no packageManager field. A local pnpm 10 run rewrites pnpm-lock.yaml in a very different format (a ~9,500-line diff was observed), and pnpm install --no-frozen-lockfile in CI means the lockfile can drift silently.

Fix: add "packageManager": "pnpm@11.x.x" to package.json (corepack will then use it) and consider --frozen-lockfile in CI installs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions