-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
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
Metadata
Metadata
Assignees
Labels
No labels