adspace


Explain exit codes in Node.JS? List out some exit codes?

Answer Posted / Himanshu Shekhar

Exit codes in Node.js are numbers that a JavaScript program returns when it terminates, indicating its status. Common exit codes include:

- 0: Successful exit (default exit code if no error occurs).
- 1: An error occurred, but the problem can be solved without losing data (e.g., an argument was passed incorrectly).
- 255: System error (operating system specific).
- 8: Operational error (e.g., permission denied or resource unavailable).

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How we can read a file in node js?

572


Is node js losing popularity?

592