每次我运行npm run start时,一切似乎都很正常,我的日志显示没有任何问题,直到我遇到以下情况:(Use `node --trace-warnings ...` to show where the warning was created)
(node:4476) UnhandledPromiseRejectionWarningprocess on unhandled promise rejection,
以下是错误:
(node:4) UnhandledPromiseRejectionWarning: Unhandled promise rejection.process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org
yarn,npm和nodejs都是最新的.这就是我得到的..。undefined
(node:7316) UnhandledPromiseRejectionWarning: Unhandled promise rejection.process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.or
我正在用MongoDB编写NodeJS后端项目的测试用例,使用Jest,Supertest和Mongoose作为端点。process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.orgprocess on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https:&
zapClient(zapOptions);
zaproxy.spider.scan("https://www.google.co.in"); 我正在尝试运行上面的代码,我得到了:(node:8380) UnhandledPromiseRejectionWarning我试过socket hang up error with nodejs,但"Request error: Socket hang up" with nodeJS on Amazon EC2不起作用。
我告诉它获取用户信息,它在控制台中输出了如下内容:
(node:15012) UnhandledPromiseRejectionWarning: DiscordAPIError: Cannot sendprocess on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.orgprocess on unhandled promise rejection, use the CLI flag `-
${title}, ${link} \n` ); }) }(node:5293) UnhandledPromiseRejectionWarningprocess on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org(rejection id: 512)
(node: