Skip to content

--allow-build does not work with pnpx alias #9719

@stefanprobst

Description

@stefanprobst

Verify latest release

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

pnpm version

10.12.4

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

No response

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

No response

Reproduction steps

running
pnpx --allow-build=esbuild storybook --help
or
pnpm dlx --allow-build=esbuild storybook --help
will result in the following error message:

ERR_PNPM_SPEC_NOT_SUPPORTED_BY_ANY_RESOLVER  --allow-build=esbuild isn't supported by any available resolver.

however, pnpm --allow-build=esbuild dlx storybook --help does seem to work correctly.

Describe the Bug

see above.

Expected Behavior

see above.

Which Node.js version are you using?

22.16.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)

Ubuntu 24.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions