Verify latest release
pnpm version
10.8.1
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
- Create a package where the
package.json's bin field points to a directory
- Add this package as a dep in another package
- Run
pnpm install
Describe the Bug
Invalid values in the bin field of package.json fails to install with EISDIR: illegal operation on a directory, read. Afaik packageExtensions can not be used to "fix" this field.
Expected Behavior
Invalid values in the bin field are ignored/warned and do not fail the installation (like yarn and npm).
Which Node.js version are you using?
^20
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.8.1
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
package.json'sbinfield points to a directorypnpm installDescribe the Bug
Invalid values in the
binfield ofpackage.jsonfails to install withEISDIR: illegal operation on a directory, read. AfaikpackageExtensionscan not be used to "fix" this field.Expected Behavior
Invalid values in the
binfield are ignored/warned and do not fail the installation (like yarn and npm).Which Node.js version are you using?
^20
Which operating systems have you used?
If your OS is a Linux based, which one it is? (Include the version if relevant)
No response