Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When running `npm exec` and the global path specified using config's `prefix` doesn't exist, execution fails when npm lfirst ooks for the package availability at global level to run it. Testing the presence of the `prefix` (a.k.a `globalPath`) directory rather than just testing the `globalPath` directive fix this issue. This bug was introduced by commit 19a8346, so this patch can be backported to npm > 8.12.1
- Loading branch information