pnpm follows whatever is configured as npm registries. To use a custom registry, use npm config
:
# updates ~/.npmrc
npm config set registry http://npmjs.eu
Or to use it for just one command, use environment variables:
env npm_registry=http://npmjs.eu pnpm install
Private registries are supported, as well.
npm config set @mycompany:registry https://npm.mycompany.com
pnpm install @mycompany/foo