Verify latest release
pnpm version
No response
Which area(s) of pnpm are affected? (leave empty if unsure)
CLI
Link to the code that reproduces this issue or a replay of the bug
No response
Reproduction steps
configure a private registry in pnpm-workspace.yaml like so:
registry: <your private registry URL>
do NOT configure that in any npm-configuration (no /etc/npmrc, no ~/.npmrc, no ./.npmrc)
enter pnpm login to authenticate against your private registry
Describe the Bug
pnpm delegates to npm which doesn't know about pnpm-workspace.yaml, so instead tries to authenticate against default registry:
npm notice Log in on https://registry.npmjs.org/
Expected Behavior
pnpm login should authenticate against configured private registry.
Which Node.js version are you using?
22.18.0
Which operating systems have you used?
If your OS is a Linux based, which one it is? (Include the version if relevant)
No response
Verify latest release
pnpm version
No response
Which area(s) of pnpm are affected? (leave empty if unsure)
CLI
Link to the code that reproduces this issue or a replay of the bug
No response
Reproduction steps
configure a private registry in
pnpm-workspace.yamllike so:registry: <your private registry URL>do NOT configure that in any npm-configuration (no
/etc/npmrc, no~/.npmrc, no./.npmrc)enter
pnpm loginto authenticate against your private registryDescribe the Bug
pnpm delegates to npm which doesn't know about
pnpm-workspace.yaml, so instead tries to authenticate against default registry:Expected Behavior
pnpm loginshould authenticate against configured private registry.Which Node.js version are you using?
22.18.0
Which operating systems have you used?
If your OS is a Linux based, which one it is? (Include the version if relevant)
No response