Using NPM
It's important that you have globally installed node things in the global ENV path. To do this, run these two commands:
setx NODE_PATH "%AppData%\npm\node_modules"
setx -m NODE_PATH "%AppData%\npm\node_modules"
Using NVM
If you use nvm you have to set the NODE_PATH to your installed or project related Node Version.
Run these two commands (replace XX.XX.XX with your installed node version):
setx NODE_PATH "%AppData%\nvm\vXX.XX.XX\node_modules"
setx -m NODE_PATH "%AppData%\nvm\vXX.XX.XX\node_modules"