Verify latest release
pnpm version
10.19.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/patricklafrance/pnpm-dlx-repro
Reproduction steps
OR
In an existing repository:
- Create a
pnpm-workspace.yaml file and add dangerouslyAllowAllBuilds: true
pnpm install
- Create a script using
pnpm dlx like: pnpm dlx rimraf node_modules
- The following error will happen:
ERR_PNPM_CONFIG_CONFLICT_BUILT_DEPENDENCIES Cannot have both neverBuiltDependencies and onlyBuiltDependencies
Describe the Bug
When dangerouslyAllowAllBuilds: true is added to a pnpm-workspace.yaml file it seems impossible to define a script using pnpm dlx.
The following error happens:
ERR_PNPM_CONFIG_CONFLICT_BUILT_DEPENDENCIES Cannot have both neverBuiltDependencies and onlyBuiltDependencies
Expected Behavior
No error.
Which Node.js version are you using?
25.0.0
Which operating systems have you used?
If your OS is a Linux based, which one it is? (Include the version if relevant)
No response
Verify latest release
pnpm version
10.19.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/patricklafrance/pnpm-dlx-repro
Reproduction steps
pnpm installpnpm resetERR_PNPM_CONFIG_CONFLICT_BUILT_DEPENDENCIES Cannot have both neverBuiltDependencies and onlyBuiltDependenciesOR
In an existing repository:
pnpm-workspace.yamlfile and adddangerouslyAllowAllBuilds: truepnpm installpnpm dlxlike:pnpm dlx rimraf node_modulesERR_PNPM_CONFIG_CONFLICT_BUILT_DEPENDENCIES Cannot have both neverBuiltDependencies and onlyBuiltDependenciesDescribe the Bug
When
dangerouslyAllowAllBuilds: trueis added to apnpm-workspace.yamlfile it seems impossible to define a script usingpnpm dlx.The following error happens:
ERR_PNPM_CONFIG_CONFLICT_BUILT_DEPENDENCIES Cannot have both neverBuiltDependencies and onlyBuiltDependenciesExpected Behavior
No error.
Which Node.js version are you using?
25.0.0
Which operating systems have you used?
If your OS is a Linux based, which one it is? (Include the version if relevant)
No response