Skip to content
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

Can't login to NPM due to OTP code #33

Closed
electronstudio opened this issue Feb 17, 2022 · 5 comments
Closed

Can't login to NPM due to OTP code #33

electronstudio opened this issue Feb 17, 2022 · 5 comments

Comments

@electronstudio
Copy link

When I try to login to NPM, I receive an OTP code in my email. However Jdeploy does not ask for the OTP code, therefore it cannot login. It just hangs until I cancel.

@shannah
Copy link
Owner

shannah commented Feb 17, 2022

Thanks for reporting this. Login is hard to get right because "works for me" - but I guess my login flow may be different.

Workaround: You can login in the command line, and then it won't prompt you - it will just use that.

npm login

The OTP code works for me, BTW. However, I don't (apparently) have two-factor auth enabled on my account yet. Do you have 2-factor auth enabled?

@electronstudio
Copy link
Author

Thanks, that works.

Previously I tried both with and without 2FA enabled.

@shannah
Copy link
Owner

shannah commented Feb 18, 2022

It is possible that this is related to different versions of npm using a slightly different login flow. If you get a chance, can you do npm logout and then npm login and post what the CLI output looks like for you? (redacted your credentials of course).

@electronstudio
Copy link
Author

Since I updated NPM I can now login with OTP in jdeploy.

@shannah
Copy link
Owner

shannah commented Mar 3, 2022

Thanks for letting me know.

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

No branches or pull requests

2 participants