This is a really interesting question. You will probably get more answers if you format the name of your question as follows: Node JS the difference between the error, stderr and stdout.
I will not repeat the difference between stdout and stderr, as this is the answer earlier.
However, the difference between error and stderr is not so easy to distinguish.
An error is an error object created by Node JS because it has a problem executing your command. More here
Stderr is the standard output stream that occurs because something is wrong at runtime - this is Node. JS has no problems executing your command, it is your command that throws an error.
Let me know if this is clear, otherwise I'm glad to add an example :)
Kewei qu
source share