【发布时间】:2017-03-02 18:39:55
【问题描述】:
当我在节点中运行以下代码时:
var shell = require('shelljs');
var files = shell.ls('-R', './**/foobar');
console.log('Files found:\n' + files.join('\n'));
我在输出中看到了这个:
ls: no such file or directory: ./**/foobar
我怎样才能抑制标准错误,使其不被显示?
【问题讨论】: