[BUG] npm does not find executables from other packages if package using it is installed from local directory #4120
Labels
Bug
thing that needs fixing
Needs Triage
needs review for next steps
Release 8.x
work is associated with a specific npm 8 release
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
Npm does not find executables registered in the "bin" section of package a, needed by package b if package b is installed from a local directory (and thus symblinked into the node_modules directory).
Expected Behavior
Npm does find executables.
Steps To Reproduce
bug.zip
Output of step 8:
Note: wrong PATH generation happens probably because packages are symlinked into the node_modules directory upon package installation. If I replace the symlinked package with a real copy of the package, then it works.
Environment
The text was updated successfully, but these errors were encountered: