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 not working, I find the word "set" is special keyword for npm and bat, is there any methods to resolve this question?
Probably I am too late to answer. But if anybody need it, following works fine, as I have used it a lot of times.
You can change using the .bat make sure you run the call command prior, hopefully this helps anyone in future making similar .bat commands