Closed
Description
Current Behavior:
If I run npx <binary>
of a binary installed by a child's package.json
, it doesn't find the binary as npm v7 now install the binaries under the parent node_modules
.
Expected Behavior:
This used to work, as there was no workspaces concept before and therefore all the projects were linking binaries to their node_modules
.
Steps To Reproduce:
Should be simple.
Environment:
Suggestion
I think this should not be fixed by npx
itself, but instead, npm
should create symlinks under the children's node_modules/.bin
at least for the packages referenced in the children's package.json
.