NODE_REDIRECT_WARNINGS=file
当设置时,进程警告将触发到给定文件而不是打印到标准错误
如果文件不存在则创建,如果存在则追加。
如果在尝试将警告写入文件时发生错误,则警告将改为写入标准错误。
这相当于使用 --redirect-warnings=file
命令行标志。
When set, process warnings will be emitted to the given file instead of
printing to stderr. The file will be created if it does not exist, and will be
appended to if it does. If an error occurs while attempting to write the
warning to the file, the warning will be written to stderr instead. This is
equivalent to using the --redirect-warnings=file
command-line flag.