I\'m getting an error when trying to use any global module, exemple:
Error: Cannot find module \'express\' at Function.Module._resolveFilename (module.js:
I was getting same error on Windows7/x64 and adding following in the environment variable resolved the issue:
NODE_PATH=C:\Users\[USERNAME]\AppData\Roaming\npm\node_modules
*Replace [USERNAME] with your actual system username