berry: [Bug] open: spawn ENOTDIR
- I’d be willing to implement a fix
Describe the bug
Yarn 2 PnP breaking library open
, since it brings it own xdg-open
script when to be used, but childProcess.spawn() can’t address the script while the package is zipped.
To Reproduce
await packageJsonAndInstall({
dependencies: {
open: "^7.0.1"
}
});
const open = require("open");
await expect(open("https://google.com")).rejects.not.toThrow('spawn ENOTDIR');
Screenshots
If applicable, add screenshots to help explain your problem.
Environment if relevant (please complete the following information):
- OS: Linux
- Node: v10.16.0
- Yarn: 2.0.0-rc.27
Additional context
Add any other context about the problem here.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 5
- Comments: 25 (13 by maintainers)
Sorry for the late reply on this and thanks for the help. Unplugging
opn
solved my issue. I was thinking to unplug open instead since that is the name of the library/command being used. Thanks for the help.