process.stderr.end() 现在只关闭流端而不是底层资源,而不是发出错误,从而使这个错误过时了。
process.stderr.end()
移除于: v10.12.0
试图关闭 process.stdout 流。 根据设计,Node.js 不允许用户代码关闭 stdout 或 stderr 流。
process.stdout
stdout
stderr
Rather than emitting an error, process.stderr.end() now only closes the stream side but not the underlying resource, making this error obsolete.
Removed in: v10.12.0
An attempt was made to close the process.stdout stream. By design, Node.js does not allow stdout or stderr streams to be closed by user code.