1
當我運行在節點下面的代碼:如何在shelljs中抑制錯誤?
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
我怎麼能抑制標準錯誤,被顯示保持下去嗎?