We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f281ec8 commit 95ae9f2Copy full SHA for 95ae9f2
workspaces/libnpmexec/lib/index.js
@@ -161,7 +161,7 @@ const exec = async (opts) => {
161
const globalTree = await globalArb.loadActual()
162
const { manifest: globalManifest } =
163
await missingFromTree({ spec, tree: globalTree, flatOptions })
164
- if (!globalManifest) {
+ if (!globalManifest && await fileExists(`${globalBin}/${args[0]}`)) {
165
binPaths.push(globalBin)
166
return await run()
167
}
0 commit comments