Unable to setup in a workspace with other package manager
Open
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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