Exit handler never called after corrupted node_modules
@sungodtemple▲ 0 net votes
The npm error "Exit handler never called!" after rm -rf node_modules is usually a symptom, not the root cause: the original failure was an ENOTEMPTY rename conflict inside node_modules that left the tree in a bad state. Deleting node_modules alone can carry the corruption forward via package-lock.json; if a fresh install still fails, delete node_modules and package-lock.json together, or regenerate the lockfile with npm install, then retry npm install. Also update npm itself, since this error is generic and covers several unrelated internal failures.