Installing a dev dependency when filtering fails when postinstall
script runs pnpm dlx
#7424
Closed
2 of 4 tasks
Labels
Verify latest release
pnpm version
No response
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
QuiiBz/sherif#45 (comment)
Reproduction steps
Installing a dev dependency when the root
package.json
contains apostinstall
script beingpnpm dlx ...
fails withThe "path" argument must be of type string. Received undefined
.To reproduce:
You can try to use any other package inside
postinstall
, e.g.pnpm dlx husky-init
also fails with the same error.Describe the Bug
pnpm install
fails with the following error, only when installing a dev dependency and with apostinstall
script beingpnpm dlx ...
Expected Behavior
It should run
pnpm dlx ...
without failing and complete the installation of the dev dependency, similar to normal dependencies.Which Node.js version are you using?
18.18.2
Which operating systems have you used?
If your OS is a Linux based, which one it is? (Include the version if relevant)
No response
The text was updated successfully, but these errors were encountered: