Last pnpm version that worked
10.6.5
pnpm version
10.7.0
Code to reproduce the issue
In [email protected] running pnpm config get [key] or pnpm get [key] where [key] contains a / always prints undefined regardless of whether the value is set or not
Expected behavior
pnpm config set key-containing-/slash value
pnpm config get key-containing-/slash
# prints 'value'
Actual behavior
pnpm config set key-containing-/slash value
pnpm config get key-containing-/slash
# prints 'undefined'
Additional information
I encountered this while attempting to get the current npm token with pnpm config get //registry.npmjs.org/:_authToken in a build script.
This is an issue for any key containing a /, I am not aware of any other problematic characters.
Quoting the key doesn't fix the issue.
pnpm config delete also has the same issue: config keys containing a / can't be deleted
Node.js version
v22.14.0
Operating System
macOS
Last pnpm version that worked
10.6.5
pnpm version
10.7.0
Code to reproduce the issue
In
[email protected]runningpnpm config get [key]orpnpm get [key]where[key]contains a/always printsundefinedregardless of whether the value is set or notExpected behavior
Actual behavior
Additional information
I encountered this while attempting to get the current npm token with
pnpm config get //registry.npmjs.org/:_authTokenin a build script.This is an issue for any key containing a
/, I am not aware of any other problematic characters.Quoting the key doesn't fix the issue.
pnpm config deletealso has the same issue: config keys containing a/can't be deletedNode.js version
v22.14.0
Operating System
macOS