Error: The installed pnpm reports version 12.4.2, expected 12.5.1

Open
#58 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
github-actions, typescript
Domain
ci-cd, devops

Research direction

Start by reproducing the GitHub Actions workflow with pnpm/setup@v2.1.0 and the requested pnpm 12.5.1 version. Inspect dist/index.js around the reported stack location and verify that the installed version matches the requested version without the error.

Written by the indexing model from the issue text.

Description

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
Dominant language
TypeScript
Stars
140
Forks
19
Avg merge
7d 9h
Merged PRs (30d)
8

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from pnpm/setup

All issues in pnpm/setup

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.