Installing NPM packages globally on Windows

For some reason (per­haps in multi-user envir­on­ments) a default install of Node on Windows may not put the cor­rect NPM global pack­age loc­a­tion in the path.

If you’re hav­ing issues like the following:

'grunt' is not recognized as an internal or external command,
operable program or batch file.

Where Grunt might be any global pack­age, such as Browserify, add the fol­low­ing loc­a­tion to your path:

Windows 7: C:\Users\{username}\AppData\Roaming\npm

Replace {username} with your cur­rently logged in user.

This should make global Node mod­ules dis­cov­er­able and usable on your system.

One thought on “Installing NPM packages globally on Windows”

Leave a Reply