Skip to content

pnpm dlx command fails with patchedDependencies in a monorepo #9174

@Ronny-zzl

Description

@Ronny-zzl

Verify latest release

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

pnpm version

10.5.0

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

CLI

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

https://github.com/Ronny-zzl/pnpm-patch-deps-test

Reproduction steps

  1. pnpm i
  2. pnpm start and the error below will occur

 ERR_PNPM_PATCH_NOT_APPLIED  The following patches were not applied: express

Describe the Bug

When using pnpm dlx in a workspace monorepo with patchedDependencies, the package downloading fails. This issue is specific to pnpm version 10.5.0.

Expected Behavior

pnpm dlx command should download packages successfully.

Which Node.js version are you using?

22.14.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