npm global install does not add packages to PATH on Windows 8.1

I’m using win8.1 and I found that the nodejs installer didn’t add the path to global node modules to the system PATH. Just add %AppData%\npm; to the user variable(since %AppData% dir is depending on user) PATH to fix it.

You will need to log out then log back in for the change to your PATH variable to take effect.

SET PATH=%AppData%\npm;%PATH%

Leave a Comment