[BUG] Unable to invoke `which` from Windows 11's Terminal
DevDengChao opened this issue · comments
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
Expected Behavior
which
should be registered to PATH after installation.
Steps To Reproduce
- Install latest lts Node.js with nvm for windows
- Open the Terminal app
- Install the module by
npm i -g which
- Invoke
which which
and you will see something like above.
Environment
- npm: 9.5.1
- Node: 18.16.0
- OS: Windows 11 22H2 22621.1555
- platform: DIY Windows desktop
After comparing uuid's package.json and which's package.json, I found that which registered its binaray as node-which
https://github.com/npm/node-which/blob/main/package.json#L12