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 version 4.4.1, you can use:
npm config set @myco:registry=http://reg.example.com
Where @myco is your package scope. You can install package in this way:
npm install @myco/my-package
ref: https://docs.npmjs.com/misc/scope