[BUG] ENOENT on npm exec
if prefix
directory doesn't exist
#5942
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
Starting with 19a8346, a simple
npm exec foo
fails withENOENT
if theprefix
directory specified innpmrc
doesn't exist:Expected Behavior
It used to work just fine until that commit:
Steps To Reproduce
No response
Environment
This was tested on Node.js 18.8.0 and 19.1.0. It worked fine on 18.7.0.
The text was updated successfully, but these errors were encountered: