-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm publish has resulted in error "You need to authorize this machine using npm adduser
"
#25
Comments
Ditto, same software versions and same error. |
I'm running into this error as well. Any suggestions on how to bypass it? |
Same issue here. It sounds like @alabebop has a workaround, but I am too new to this environment to understand it. Is any further guidance available? |
It go resolved!!!
|
@AnandWalvekar That workaround didn't work for me. Still fails to publish, even when npm whomi correctly returns my username. Getting the following output:
|
Getting same error as @devhammer, with node v0.10.35 on Windows 10. |
AnandWalvekar's solution worked with me! |
The work around fixed it for me as well. Wasted a bunch of time getting there though. |
Solution worked for me as well, thanks @AnandWalvekar |
Workaround worked for me. Cheers @AnandWalvekar |
@AnandWalvekar thanks a lot it worked but I had to bump the version. |
Also had this error and workaround worked for me. |
Workaround worked for me. Cheers @AnandWalvekar |
AnandWalvekar's solution worked with me! |
I have documented the issue and solution here #8 (comment) . |
@AnandWalvekar's solution worked for me as well! |
@AnandWalvekar's solution worked for me! I suggest adding this as a tip in the module in case someone has the same issue |
@AnandWalvekar Thanks for the solution |
I had to go through the steps a few times but the work around for the solution mentioned above does work :) |
@AnandWalvekar thx for the WA.. worked like a charm :) |
@AnandWalvekar solution works for me locally. but At the moment I can't figure out why the same flow doesn't work on Jenkins. This is cut from my custom .npmrc file created by Jenkins.
|
Does not work!
|
I see, you have
|
OS: Linux renato 4.4.0-104-generic #127-Ubuntu SMP Mon Dec 11 12:16:42 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
I am at home, no proxies. No |
I keep getting the same error even when I successfully login. |
In my ci script, I have resolved this issue using a _auth token and setting up the user email like this :
|
My issue was that I had the "publishConfig": {
"registry": "https://registry.npmjs.org/"
}, |
|
I just delete currentdir/.npmrc and then use |
@Bittttter |
yes, when i delete |
I had to go pro, publish the package, make the package public, and open a ticket to get my money back. It was super stupid. |
Thank you, it helped to solve my problem |
@JMuhire i just added |
Hi,
In the 08 Publish chapter I was not able to
npm publish
against the .npmrc local environment. However it worked when the .npmrc file removed and with a connection to https://www.npmjs.com/. None of the following chapters worked correctly either against this local environment, and all worked well again without the .npmrc file and with a connection to https://www.npmjs.com/.I once went through the 02 Login chapter smoothly and
npm whoami
returned the correct info. At this point runningnpm whoami
also results in authentication errors.Looking at the path that
userconfig
in .npmrc pointed to (userconfig = /Users/xiaoli.shen/.config/how-to-npm/npmrc
), there is no such file or folder namednpmrc
, which might be the reason for the authentication errors.I'm using version 2.0.0 of how-to-npm and on Mac OS 10.9.5
My npm-debug.log is as follows:
The text was updated successfully, but these errors were encountered: