Search code examples
node.jsruntime-errorexitexit-code

Describe the exit codes in Node.js?


Any idea about how many exit codes occur in Node.js?

example:

Unused (reserved by Bash for builtin misuse)


Solution

  • Exit codes in Node.js are a specific group of codes that finish off processes, which can include global objects as well. Some of the exit codes in Node.js are:

    • Internal JavaScript Evaluation Failure
    • Fatal Error
    • Internal Exception
    • handler Run-time failure
    • Unused
    • Uncaught fatal exception