[BUG] scripts-prepend-node-path not respected in npm v8.1.2 #4131
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
I have a
postinstall
script in mypackage.json
which doeswhich node
.With node
v16.13.1
and npmv8.1.2
, I get the following result -node
is resolving to my global installation.Expected Behavior
However, with node
v14.8.2
and npmv6.14.15
, node resolves to my local installation -IIUC, with
scripts-prepend-node-path=true
, should continue to resolve to my local installation even with nodev16.13.1
and npmv8.1.2
. If this has been deprecated, please let me know.Steps To Reproduce
As explained in
Current Behavior
section.Environment
The text was updated successfully, but these errors were encountered: