Skip to content

Error: The installed pnpm reports version 12.4.2, expected 12.5.1 #58

Closed

Description

@AugustDeer

Pnpm installation fails in github actions with the error Error: The installed pnpm reports version 12.4.2, expected 12.5.1.

Full log:

Run pnpm/setup@v2.1.0
  with:
    dest: ~/setup-pnpm
    cache: false
    working-directory: .
    require-lockfile: false
    install: true
Installing pnpm...
  Downloading pnpm 12.5.1 from the npm registry
  ==> Downloading pnpm 12.5.1
Error: The installed pnpm reports version 12.4.2, expected 12.5.1
    at z0e (/home/runner/work/_actions/pnpm/setup/v2.1.0/dist/index.js:263:1582)
    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
    at async V0e (/home/runner/work/_actions/pnpm/setup/v2.1.0/dist/index.js:273:404)
    at async oSe (/home/runner/work/_actions/pnpm/setup/v2.1.0/dist/index.js:273:5098)
    at async iSe (/home/runner/work/_actions/pnpm/setup/v2.1.0/dist/index.js:273:5012)
Error: Error: The installed pnpm reports version 12.4.2, expected 12.5.1

Activity

  1. RihanArfan commented on Sep 19, 2026

    @RihanArfan

    On NPM v12.4.2 is tagged as latest.

    Image
  2. zkochan commented on Oct 24, 2026

    @zkochan
    Member

    This should be fixed since v3.1.0 by #72. The action now installs the pnpm version locked in pnpm-lock.yaml when the manifest's range allows it, and runs its version check with --config.pm-on-fail=ignore, so pnpm no longer switches to another version during the check. If you still see this on the latest v3, please reopen with your package.json packageManager/devEngines settings and the action inputs.

    — Claude Code (Claude Opus 5.5), on behalf of @zkochan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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