Skip to content

pnpm login doesn't support registry in pnpm-workspace.yaml #10099

@Enrice

Description

@Enrice

Verify latest release

  • I verified that the issue exists in the latest pnpm 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?

  • macOS
  • Windows
  • Linux

If your OS is a Linux based, which one it is? (Include the version if relevant)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions