-
Notifications
You must be signed in to change notification settings - Fork 3k
Failing to login from PowerShell - npm Err! code EAUTHIP, Unable to authenticate, need: Basic #21193
Comments
Please check what is in your .npmrc file (in your user directory). |
I don't have a .npmrc file in this location. My computer was recently installed, and I don't have access to the old User directory (only to files in it). Are there any npm commands/tools for setting this up? |
It is usually hidden, you have to show it in the settings of explorer. |
No .npmrc in my user's folder, or anywhere in the hidden Appdata folder. Of course NPM is installed. How do I set it up? |
Found it. Since in all the lines the default is commented I guess it means that the default is taken anyway. Just in case I un-commented the registry key-value, but it still fails. What's necessary for the login to succeed? |
Exactly. Just wanted to make sure you use the default settings. |
Perhaps the .npmrc file in the user folder should contain some Auth information that is missing? |
I'm opening this issue because:
What's going wrong?
from Power Shell I'm trying to login to npm.

After typing my username, password and email I get this error. On this computer I haven't logged in from Power Shell to npm before.
I can login from the browser to the npmjs website.
I couldn't find relevant info about this error.
According to the error message:
But in my User folder there is no AppData folder.
How can the CLI team reproduce the problem?
On a windows 10 computer open PowerShell. type
npm login
. Enter the correct username, password and email.supporting information:
npm -v
prints: 5.6.0node -v
prints: v8.11.3npm config get registry
prints: https://registry.npmjs.org/The text was updated successfully, but these errors were encountered: