[BUG] npx fails to run without empty lib directory #6351
Labels
Bug
thing that needs fixing
Needs Triage
needs review for next steps
Release 9.x
work is associated with a specific npm 9 release
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
When node is installed with
hermit
,npx
does not work:Creating the
.hermit/node/lib
directory viamkdir -p .hermit/node/lib
appears to fix this issue, even though the directory doesn't contain anything.See cashapp/hermit-packages#309, the hermit maintainers believe this is a bug with
npx
.Expected Behavior
npx
should work without needing an emptylib
directory to exist.Steps To Reproduce
mkdir hermit-npx-bug && cd hermit-npx-bug
hermit init
. ./bin/activate-hermit
hermit install node
which npx
(this will verify the hermit-installednpx
is being used)npx rimraf --help
(this will fail)mkdir -p .hermit/node/lib
npx rimraf --help
(this works now!)Environment
The text was updated successfully, but these errors were encountered: