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
- Use CLI version
8.15.0
- Run
npm login --auth-type=web
3.Hit "Ctrl + C". This will not do anything
- Hit "Ctrl + C" again. Now the polling of the CLI is killed.
Environment
- npm: 8.15.0
- Node.js: v17.9.1
- OS Name: MacOS Monterey v12.4
- System Model Name:
- npm config: Macbook Pro, 2019
; "user" config from /Users/neeldani/.npmrc
@npm:registry = "https://npm.pkg.github.com"
//npm.pkg.github.com/:_authToken = (protected)
//registry.npmjs.org/:_authToken = (protected)
; node bin location = /Users/neeldani/Library/Application Support/fnm/node-versions/v17.9.1/installation/bin/node
; node version = v17.9.1
; npm local prefix = /Users/neeldani/npm-packages-test/neel-package-prod
; npm version = 8.15.0
; cwd = /Users/neeldani/npm-packages-test/neel-package-prod
; HOME = /Users/neeldani
; Run `npm config ls -l` to show all defaults.
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.0npm login --auth-type=web3.Hit "Ctrl + C". This will not do anything
Environment