npm global install does not add packages to PATH on Windows 8.1
You have to run this line SET PATH=pathtonodejs;%PATH%
(where pathtonodejs
is where you installed nodejs) once the installation for nodejs is complete and it should work.
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%