[BUG] Hitting Ctrl + C does not kill the polling of the CLI in the first go while logging in #5231
Closed
2 tasks done
Labels
Bug
thing that needs fixing
Needs Triage
needs review for next steps
Release 8.x
work is associated with a specific npm 8 release
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
When the user logs in ia the CLI using the flag
--auth-type=web
, the user is prompted to hit "Enter" to open the link in the browser. However, if the user changes their mind and wishes to kill the polling of the CLI, they need to hit "Ctrl + C" twice to kill the process.I suspect that the CLI is waiting for the user to hit "Enter" and hence it does not recognise the "Ctrl + C" the first time.
Expected Behavior
Hitting "Ctrl + C" the first time should kill the CLI polling
Steps To Reproduce
8.15.0
npm login --auth-type=web
3.Hit "Ctrl + C". This will not do anything
Environment
The text was updated successfully, but these errors were encountered: