[BUG] npm access commands not sending auth token #6210
Labels
Bug
thing that needs fixing
Needs Triage
needs review for next steps
Release 9.x
work is associated with a specific npm 9 release
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
After having set both the
NPM_TOKEN
environment variable, and runningecho "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
, thenpm access grant
command fails withUnable to authenticate, need: bearer
.Issue appears to have been introduced by this commit.
Other commands work by sending
...this.npm.flatOptions
, and this appears to be missing from the access commands.Expected Behavior
The command should update the package with permissions for my team.
Steps To Reproduce
Environment
The text was updated successfully, but these errors were encountered: