节点js警告有关拒绝承诺

时间:2017-06-26 08:54:02

标签: node.js

我今天运行我的节点js应用程序,我开发了几个月,然后它一切都很棒..现在在控制台中我看到这个警告错误:

(node:19318) UnhandledPromiseRejectionWarning: Unhandled promise rejection 
(rejection id: 1): ReferenceError: done is not defined
(node:19318) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:19318) UnhandledPromiseRejectionWarning: Unhandled promise rejection 
(rejection id: 2): ReferenceError: done is not defined
(node:19318) UnhandledPromiseRejectionWarning: Unhandled promise rejection 
(rejection id: 3): ReferenceError: done is not defined
(node:19318) UnhandledPromiseRejectionWarning: Unhandled promise rejection 
(rejection id: 4): ReferenceError: done is not defined
(node:19318) UnhandledPromiseRejectionWarning: Unhandled promise rejection 
(rejection id: 5): ReferenceError: done is not defined
(node:19318) UnhandledPromiseRejectionWarning: Unhandled promise rejection 
(rejection id: 6): ReferenceError: done is not defined

在哪里可以找到导致此警告的模块或功能?因为昨天工作非常好,没有进行代码修改......在哪里我可以搜索问题来修复它?我尝试在index.js中搜索Promise但是没有找到...所以我认为某些npm模块正在使用Promise以及如何检测它是什么?节点js是否有一些日志文本文件输出写入错误的文本文件描述是什么导致它?

0 个答案:

没有答案
相关问题