Last Updated: July 25, 2019
·
2.574K
· deleteman

NPM in Windows - Run global modules like in Linux

Something that was happening to me when I started programming in Node.js using Windows, is that the modules that had to be installed globally were not accessible from the command line like in linux.

That is because the executables are installed onto a folder that's not on the Path env variable by default (at least in my computer with Windows 8).

So all I had to do, was to add the following path to the global PATH environment variable and they all started working!

c:\Users\USERNAME\AppData\Roaming\npm

That's it, now all global tools are accessible just like in my linux box!