Why “npm config set registry https://registry.npmjs.org/” is not working in windows bat file?
You should not change the npm registry using .bat files. If not try to use modify the .npmrc file which is the configuration for npm.
This will be perfect command for changing registry:
npm config set registry <registry url>
we can find more information with npm help config command, for privileges when and if you are running .bat files this way.