Skip to content

Unable to setup in a workspace with other package manager #170

Open
@JounQin

Description

@JounQin

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 [email protected] 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 [email protected] 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

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