-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
/-/v1/login not implemented (npm login) > npm@9.x #3413
Comments
Hi @sloonz Yeah probably something to review npm/cli#5550 soon, for now npm9 is alpha and no big issue. I'm glad this logic is being refactored because is confusing at least in my side. Thanks for the detailed explanation |
npm@9 was announced by my current npm@8 - and it should be GA now - npm@latest is 9.1.2. Unfortunately something goes wrong with auth-type "web":
It works with --auth-type=legacy, though. |
Thanks for the workaround @jeffrson ! Ref: #1515 |
if you use the flag |
Thanks for the workaround. Super frustrating at first |
Some news, after npm@9.5.0 there is a gracefully fallback behaviour, check here eg: npm adduser --registry http://localhost:4873
npm notice Log in on http://localhost:4873/
npm verb web adduser before first POST
npm sill logfile start cleaning logs, removing 1 files
npm sill logfile done cleaning log files
npm http fetch POST 404 http://localhost:4873/-/v1/login 132ms
npm verb web add user not supported, trying couch
Username: |
thanks bro, you saved my life :D |
Am I correct this is still an issue? |
@prom00 yes, I don't believe a proper fix has ever made it in |
As long there is a viable workaround, also the feature at npm fallback automatically so is just fine, not a bug prio for me, but definitely in the roadmap to be fixed. |
I've been looking around to find out if the legacy authentication will be removed from npm. |
Upgrade your client to npm@9.5.0 to solve your issue:
Check: #3413 (comment)
or npm clients older than v9.5.0
WORKAROUND available ⬇️
On a fresh Verdaccio default installation (5.15.4),
npm login
on a user I created withnpm adduser
asks to re-enter the email. This is because the login actually fails, andnpm login
automatically try to register a new account when login fails :So to summarize what happened (when I tried to login on an user created with adduser) :
So in the end, login kinda works, but prompts for an email while it shouldn’t. But more importantly : without
/-/v1/login
,npm login
doesn't work at all on npm 9.0.0-pre.3 :The text was updated successfully, but these errors were encountered: