Here is my problem. We have a private NPM registry which only works in VPN. I would like to have a fallback registry https://registry.npmjs.org so that when I am out of VPN
On version 4.4.1, if you can change package name, use:
npm config set @myco:registry http://reg.example.com
Where @myco is your package scope.
@myco
You can install package in this way:
npm install @myco/my-package
For more info: https://docs.npmjs.com/misc/scope