I create a.bat on windows 7, the content of a.bat is:
@echo off npm config set registry https://registry.npmjs.org/
and then run a.bat, but
Probably I am too late to answer. But if anybody need it, following works fine, as I have used it a lot of times.
npm config set registry=https://registry.npmjs.com/