Skip to content

[BUG] npm ERR! Exit handler never called during npm install #9386

@princee07

Description

@princee07

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

When running npm install inside my project, npm crashes with the following error:

npm ERR! Exit handler never called!
npm ERR! This is an error with npm itself.

A complete log of this run can be found in:
C:\Users\HP\AppData\Local\npm-cache_logs\2026-05-21T13_55_44_768Z-debug-0.log

The installation stops immediately and dependencies are not installed.

Expected Behavior

npm install should install all dependencies successfully without crashing.

Steps To Reproduce

  1. Open PowerShell
  2. Navigate to the project directory
  3. Run:
    npm install
  4. npm crashes with "Exit handler never called"

Environment

node -v
npm -v

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingNeeds Triageneeds review for next steps

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions