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.