pnpm version problem in Build Typescript

Open Beginner friendly
#129 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
65/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
github-actions, typescript

Research direction

Start with the "Build Typescript" GitHub Actions workflow and package.json, comparing the pnpm version in the action configuration with the packageManager entry. Reproduce the workflow failure and make the version source consistent, then confirm that the workflow completes without the multiple-versions error.

Written by the indexing model from the issue text.

Description

I keep my pnpm version pretty up to date (think I have min age set to 3 days).

The "Build Typescript" doesn't like this - it seems stuck on wanting v9.

Run pnpm/action-setup@v4
  with:
    version: 9
    dest: ~/setup-pnpm
    run_install: null
    cache: false
    cache_dependency_path: pnpm-lock.yaml
    package_json_file: package.json
    standalone: false
Running self-installer...
  Error: Multiple versions of pnpm specified:
    - version 9 in the GitHub Action config with the key "version"
    - version pnpm@11.2.1 in the package.json with the key "packageManager"
  Remove one of these versions to avoid version mismatch errors like ERR_PNPM_BAD_PM_VERSION
      at readTarget (/home/runner/work/_actions/pnpm/action-setup/v4/dist/index.js:1:7537)
      at runSelfInstaller (/home/runner/work/_actions/pnpm/action-setup/v4/dist/index.js:1:6702)
      at async install (/home/runner/work/_actions/pnpm/action-setup/v4/dist/index.js:1:5706)
      at async runMain (/home/runner/work/_actions/pnpm/action-setup/v4/dist/index.js:1:2804)
      at async main (/home/runner/work/_actions/pnpm/action-setup/v4/dist/index.js:1:2726)
  Error: Error: Multiple versions of pnpm specified:
    - version 9 in the GitHub Action config with the key "version"
    - version pnpm@11.2.1 in the package.json with the key "packageManager"
  Remove one of these versions to avoid version mismatch errors like ERR_PNPM_BAD_PM_VERSION
Dominant language
Python
Stars
1
Forks
1
PR merge metrics
No merged PRs in 30d

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 javaBin/platform

All issues in javaBin/platform

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.