Skip to content

pnpm config get globalconfig returns undefined on v11 #11962

Description

@enihsyou

Verify latest release

  • I verified that the issue exists in the latest pnpm release

pnpm version

11.3.0

Which area(s) of pnpm are affected? (leave empty if unsure)

No response

Link to the code that reproduces this issue or a replay of the bug

No response

Reproduction steps

$ pnpm config list
{
  "//registry.npmjs.org/:_authToken": "(protected)",
  "@jsr:registry": "https://npm.jsr.io/",
  "registry": "https://registry.npmmirror.com",
  "userAgent": "pnpm/11.3.0 npm/? node/v26.0.0 win32 x64"
}

$ pnpm config get globalconfig
undefined

$ pnpm --version
11.3.0

Describe the Bug

Docs states

You can also retrieve the path to your global config file by running (added in v10.21.0): pnpm config get globalconfig

But it returns undefined on my Windows machine

Expected Behavior

Maybe ~/AppData/Local/pnpm/config/rc, or ~/AppData/Local/pnpm/config/config.yaml ? IDK

Which Node.js version are you using?

25.8.1

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

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions