After reinstalling my machine with windows 10, setting it up with Visual Studio 2015 I encountered this error on installing my git repositories:
Visual Studio 2015
→ npm
npm
Or update npm:
npm install npm -g