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
On npm version 3.7.3
npm set registry=http://whatever/