pnpm / pnpm/action-setup

Unable to setup in a workspace with other package manager

Open
#170 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.3k
Forks
217
Avg merge
8h 42m
Merged PRs (30d)
1

Description

I want to setup pnpm globally together with other PMs enabled, but I got:

Error: Multiple versions of pnpm specified:
    - version latest in the GitHub Action config with the key "version"
    - version yarn@4.9.2 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 (/Users/runner/work/_actions/pnpm/action-setup/a7487c7e89a18df4991f7f222e4898a00d66ddda/dist/index.js:1:4742)
      at runSelfInstaller (/Users/runner/work/_actions/pnpm/action-setup/a7487c7e89a18df4991f7f222e4898a00d66ddda/dist/index.js:1:3930)
      at async install (/Users/runner/work/_actions/pnpm/action-setup/a7487c7e89a18df4991f7f222e4898a00d66ddda/dist/index.js:1:3154)
      at async main (/Users/runner/work/_actions/pnpm/action-setup/a7487c7e89a18df4991f7f222e4898a00d66ddda/dist/index.js:1:445)
  Error: Error: Multiple versions of pnpm specified:
    - version latest in the GitHub Action config with the key "version"
    - version yarn@4.9.2 in the package.json with the key "packageManager"
  Remove one of these versions to avoid version mismatch errors like ERR_PNPM_BAD_PM_VERSION

https://github.com/un-ts/napi-postinstall/actions/runs/16030671466/job/45230150908?pr=40#step:3:10

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.

Research direction

Start with the linked GitHub Actions job and the action's handling of the version value and packageManager entry in package.json. Reproduce the workspace setup with pnpm and yarn enabled; done means pnpm can be installed without the reported multiple-version error.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, nodejs, typescript
Domain
ci-cd, devops, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.