我曾使用一个名为xmldom的Node.js模块。但是,它总是输出一大堆警告和错误信息,如下所示:
@#[line:484,col:1]
[xmldom warning] attribute "hidden" missed quot(")!!
@#[line:517,col:1]
[xmldom warning] unclosed xml attribute
@#[line:517,col:1]
[xmldom warning] unclosed xml attribute
@#[line:518,col:1]
[xmldom warning] attribute "center" missed quot(")!!
@#[line:522,col:1]
[xmldom warning] attribute "6" missed quot(")!!
我在想如何明确地静默所有这些警告和错误,而不触及节点或package.json本身?