I was trying to instal Ionic framework in my Windows 8 system and was trying to install Cordova first.
I\'m getting this error while trying to install Cordova, that
npm config set registry "http://registry.npmjs.org"
Solved the issue for me. Note that it wouldn't accecpt a forward slash at the end of the url and it had to be entered exactly as shown above.