I am trying to install node modules but getting the following long list of errors.

I am using command like npm install -g ionic
or npm install -g cordova
.
What I have tried so far-
- I have tried removing and reinstalling latest version of Node.js
- I have tried installing 32 and 64 bit versions of Node.js
- I have also tried setting the
--registry
parameter to http://registry.npmjs.org/
and https://registry.npmjs.org/
.
- I have tried running command prompt and git bash shell as Administrator.
Notes:
- I am working on Windows 8.1 Pro 64 bit.
- I am not behind any firewall or proxy. All my internet work perfect.
- I have turned my windows firewall off as well.
Please help. Any help is highly appreciated.