nodejs 项目promise出现UnhandledPromiseRejectionWarning
运行node.js项目时出现:
(node:18873) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: listen EADDRINUSE 127.0.0.1:8002
(node:18873) [DEP0018] 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.
发现8002端口被占用,kill8002端口后问题解决