Using NPM

It's important that you have globally installed node things in the global ENV path. To do this, run these two commands:

  1. setx NODE_PATH "%AppData%\npm\node_modules"
  2. 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):

  1. setx NODE_PATH "%AppData%\nvm\vXX.XX.XX\node_modules"
  2. setx -m NODE_PATH "%AppData%\nvm\vXX.XX.XX\node_modules"