Npm is the exact same. You can have your local npm talk with a registry other than the npmjs one. It’s as simple as a `registry=` line in .npmrc.
So this problem it’s pretending to solve isn’t actually a problem. And the solution introduces more problems (see comment on sibiling)