Assertion failed: !(handle->flags & UV_HANDLE_CLOSING), file src\win\async.c, line 94
What causes it and how to fix it:
- process.exit() right after fetch() can crash Node on Windows, and the exit code then liesOn Windows (seen on Node.js 24), process.exit() right after the built-in fetch() sometimes aborts on a libuv assertion (UV_HANDLE_CLOSING) and ends with a crash code (3221226505, shown as 127 in Git Bash), so a check that has just printed OK reports a failure — intermittently. After the first network call, set process.exitCode and let the process finish; call process.exit() only before itCause and fix →