reeghan 2021-05-26 11:29 采纳率: 33.3%
浏览 95
已采纳

vue项目出现错误代码,然后集体卡顿,需要重启NPM

(node:2971381) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 6)

  • 写回答

4条回答 默认 最新

  • 崽崽的谷雨 2021-05-26 12:14
    关注

    promise要写全promise(()).then(()).catch() catch,then都要写上

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?