Open alex-misch opened 7 months ago
I'm seeing this issue as well (w/ yarn@4.3.1). This breaks our ability to use Edit: Okay, it doesn't really break our ability to run CLIs, but it does seem to require that we use tsc
, eslint
, and prettier
on the command-line (among others).yarn run
to invoke them — E.g. yarn run tsc
— which is less than ideal given this issue. 😞
FWIW, I reached out to the yarn support channel on Discord to see if there was a specific reason for this omission. @arcanis responded, "It hasn't been a problem enough to prompt someone to open a PR".
Thank you for the update. We have migrated to pnpm in our architecture, so this issue no longer affects us. If anyone is interested in submitting a pull request to fix this bug, please feel free to do so.
Self-service
Describe the bug
When using the nodeLinker setting set to pnpm, the .bin folder in node_modules is not created after installing dependencies, unlike when using other configurations.
To reproduce
Using nodeLinker with pnpm
results in the .bin folder not being created.
Using nodeLinker with node-modules
results in the .bin/eslint folder being created
Using pnpm Directly
also results in the .bin/eslint folder being created
Environment
Additional context
This behavior is confusing, as some libraries, such as appcenter, rely on executing binaries from the node_modules/.bin/ directory.