can not find executables in pnp mode after yarn unplug
#6982
Labels
fixed-in-modern
This issue has been fixed / implemented in Yarn 2+.
yarn unplug
#6982
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
yarn --pnp
to enable pnp modeyarn run xxx
to run executables.yarn unplug xxx
and the package is copied to./.pnp/unplugged/xxx-some-hash-here/node_modules/xxx/
yarn start
, I got/bin/sh: xxx: command not found
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
I should be able to
yarn run xxx
just like beforeyarn unplug
Please mention your node.js, yarn and operating system version.
Mac OSX
Node v10.13.0
Yarn 1.13.0
After dive into the code base, I find this is probably caused by the
.bin
directory not being copied duringyarn unplug
. Then I found.bin
is add toignoreBasenames
in #6628 intentionally.Maybe we should add some login to keep copying
.bin
duringyarn unplug
?The text was updated successfully, but these errors were encountered: