[BUG] npx is ignoring NODE_PATH #7100
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
If I run,
NODE_PATH=/path/to/my/node_modules npm
, I'm able to load all of my locally installed packages, but if i do the same withnpx
, it does not see any of them and only works withnode_modules
in the current working directory.Expected Behavior
If I run,
NODE_PATH=/path/to/my/node_modules npm
, I'm able to load all of my locally installed packages, but if i do the same withnpx
, it does not see any of them and only works withnode_modules
in the current working directory.Steps To Reproduce
If I run,
NODE_PATH=/path/to/my/node_modules npm
, I'm able to load all of my locally installed packages, but if i do the same withnpx
, it does not see any of them and only works withnode_modules
in the current working directory.Environment
; copy and paste output from `npm config ls` here
The text was updated successfully, but these errors were encountered: