Global NPM package installed but command not found Global NPM package installed but command not found windows windows

Global NPM package installed but command not found


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.


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