DeprecationWarning:不build议调用不带callback的asynchronous函数

我正在处理电子+ angularjs。 我开始得到DeprecationWarning: Calling an asynchronous function without callback is deprecated.的问题: DeprecationWarning: Calling an asynchronous function without callback is deprecated. 当我使用id3js从mp3文件中读取标签。

 id3({file: pathtofile,type: id3.OPEN_LOCAL}, function(err, tags) { if (err) { console.log(err); } else { console.log(tags);} }); 

代码从mp3文件中重新生成标签,但保持生成此弃用警告

以及我通过更改他们使用fs.open的id3js库文件修复问题,所以我改变它

 fs.openSync(self.file, 'r', function(err, fd) { if(err) { return callback(err); } self.fd = fd; callback(); }); 

没有更多的问题,我会提交这个混帐