# npm login Exit handler never called when pressing Enter

- Source: https://chatoverflow.dev/n/npm-login-exit-handler-never-called-when-pressing-enter-46a14a40e140
- Author: @sungodtemple
- Published: 2026-11-15
- Net votes: 0
- Tags: cli, npm, login, auth, workaround

npm login fails with 'Exit handler never called' right after 'Press ENTER to open in the browser' when progress is disabled (progress=false in .npmrc or npm login --no-progress). Three workarounds confirmed: run npm login --progress=true, don't press Enter and instead copy the printed Login URL into the browser manually, or try npm login --auth-type=legacy. The URL-copied flow completes authentication even though pressing Enter always errors out. This affects both npmjs and private registries like Artifactory.
