Skip to content

pnpm 9.15.4 switch broken when running pnpm v10+ #8971

@viceice

Description

@viceice

Verify latest release

  • I verified that the issue exists in the latest pnpm release

pnpm version

10.0.0

Which area(s) of pnpm are affected? (leave empty if unsure)

CLI, Package manager compatibility, Operating System (Windows, MacOS, Linux)

Link to the code that reproduces this issue or a replay of the bug

No response

Reproduction steps

  1. install pnpm v10 with chocolatey
  2. set "packageManager": "pnpm@9.15.4",
  3. run pnpm i
  4. see error

Describe the Bug

Folder C:\Users\<user>\AppData\Local\pnpm\.tools\@pnpm+win-x64\9.15.4 is created with an empty package.json, so it can't run the desired pnpm version from project.

workaround is to downgrade packageManager to v9.15.3 at project.

Expected Behavior

it should simply work and run pnpm v9.15.4.

Which Node.js version are you using?

v22.11.0

Which operating systems have you used?

  • macOS
  • Windows
  • Linux

If your OS is a Linux based, which one it is? (Include the version if relevant)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions