Error: Cannot find module 'XXX'
In Windows, the easiest way is to go Computer > Properties > Advanced System Settings > Environment Variables > User Variables > New
After the configuration, need to exit the current command line and start a new one in order to see the environment variable in effect.