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
An alternative solution that doesn't involve messing with npm installation is to run
SET CL=-DDELAYIMP_INSECURE_WRITABLE_HOOKS %CL%
before running npm install
npm install