Skip to content

cannot get some config from nearest .npmrc file with --location=project option in v10.7.1 #9362

@manlao

Description

@manlao

Verify latest release

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

pnpm version

v10.7.1

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

https://github.com/manlao/pnpm-10-7-1

Reproduction steps

run the following command with pnpm v10.7.1:

pnpm config --location=project get @scope:registry

Describe the Bug

cannot get config "@scope:registry" from .npmrc file with "--location=project" option (outputs "undefined"), and it work well without "--location=project" option.

Expected Behavior

should output config value set in .npmrc file

Which Node.js version are you using?

v22.14.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

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions