You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempt to publish a package to GitHub Packages via pnpm publish
Describe the Bug
Running pnpm publish results in the following error:
npm ERR! code ENEEDAUTH
npm ERR! need auth This command requires you to be logged in to https://npm.pkg.github.com/
npm ERR! need auth You need to authorize this machine using `npm adduser`
This happens because npm does not support tokenHelper, and pnpm passes through publish to npm instead of natively implementing it.
Expected Behavior
Successful publish, or at least an error message saying that tokenHelper is not supported while publishing.
Workaround is to run the tokenHelper to procure a token and then paste it into ~/.npmrc in the _authToken field, which is supported by npm.
Which Node.js version are you using?
20.9.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
The text was updated successfully, but these errors were encountered:
gh auth token command will output token, but it does not include Beader prefix. This issue seems to be happen because of this lack of Beader prefix. You may be able to fix this issue by fixing your /Users/ari/.local/bin/gh-token-helper like below.
Verify latest release
pnpm version
No response
Which area(s) of pnpm are affected? (leave empty if unsure)
No response
Link to the code that reproduces this issue or a replay of the bug
No response
Reproduction steps
tokenHelper
, i.e. a~/.npmrc
with:where the contents of that file are:
pnpm publish
Describe the Bug
Running
pnpm publish
results in the following error:This happens because
npm
does not supporttokenHelper
, andpnpm
passes throughpublish
tonpm
instead of natively implementing it.Expected Behavior
Successful publish, or at least an error message saying that
tokenHelper
is not supported while publishing.Workaround is to run the
tokenHelper
to procure a token and then paste it into~/.npmrc
in the_authToken
field, which is supported bynpm
.Which Node.js version are you using?
20.9.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
The text was updated successfully, but these errors were encountered: