Verify latest 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?
If your OS is a Linux based, which one it is? (Include the version if relevant)
No response
Verify latest 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:registryDescribe 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?
If your OS is a Linux based, which one it is? (Include the version if relevant)
No response