pnpm
This includes 4.x and 5.x series.
pnpm recognize by default the configuration at .npmrc and also the --registry value.
This means that you can follow the same commands described in npm replacing npm by pnpm.
See also pnpm Documentation - Settings - resolutionMode.