I have globally installed two npm packages \"download\" and \"enigmavirtualbox\" via command line:
npm install -g download
and
npm install -g engi
The executable binaries and .cmd files end up in C:\Users\<username>\AppData\Roaming\npm
(minus the node_modules
at the end) so adding that path to the PATH env. variable fixed the issue.
Here more info about this topic : https://medium.com/@alberto.schiabel/npm-tricks-part-1-get-list-of-globally-installed-packages-39a240347ef0
List of packages which have been install globally
npm list -g --depth 0
If the above method does not work then use this command to explicitly set the path
npm config set prefix c:/Users/<username>/AppData/Roaming/npm
Set your PATH
environment variable to C:\Users\YOUR_USERNAME\AppData\Roaming\npm
. This fixed it for me.