Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Failing to login from PowerShell - npm Err! code EAUTHIP, Unable to authenticate, need: Basic #21193

Open
13 tasks
carpben opened this issue Jul 11, 2018 · 7 comments

Comments

@carpben
Copy link

carpben commented Jul 11, 2018

I'm opening this issue because:

  • [ x ] npm is crashing.
  • npm is producing an incorrect install.
  • npm is doing something I don't understand.
  • npm is producing incorrect or undesirable behavior.
  • Other (see below for feature requests):

What's going wrong?

from Power Shell I'm trying to login to npm.
image
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:

A complete log of this run can be found in:
npm ERR!     C:\Users\carpb\AppData\Roaming\npm-cache\_logs\2018-07-11T09_15_40_342Z-debug.log

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.0
  • node -v prints: v8.11.3
  • npm config get registry prints: https://registry.npmjs.org/
  • Windows, OS X/macOS, or Linux?: Windows
  • Network issues:
    • Geographic location where npm was run:
    • I use a proxy to connect to the npm registry.
    • I use a proxy to connect to the web.
    • I use a proxy when downloading Git repos.
    • I access the npm registry via a VPN
    • I don't use a proxy, but have limited or unreliable internet access.
  • Container:
    • I develop using Vagrant on Windows.
    • I develop using Vagrant on OS X or Linux.
    • I develop / deploy using Docker.
    • I deploy to a PaaS (Triton, Heroku).
@DanielRuf
Copy link

Please check what is in your .npmrc file (in your user directory).

@carpben
Copy link
Author

carpben commented Jul 11, 2018

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?

@DanielRuf
Copy link

But in my User folder there is no AppData folder.

It is usually hidden, you have to show it in the settings of explorer.

@carpben
Copy link
Author

carpben commented Jul 12, 2018

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?

@carpben
Copy link
Author

carpben commented Jul 12, 2018

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?

@DanielRuf
Copy link

Found it. Since in all the lines the default is commented I guess it means that the default is taken anyway

Exactly.

Just wanted to make sure you use the default settings.

@carpben
Copy link
Author

carpben commented Jul 12, 2018

Perhaps the .npmrc file in the user folder should contain some Auth information that is missing?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants