首页 > 解决方案 > 在 NPM 之后不推荐使用未处理的承诺拒绝

问题描述

在我执行 npm install npm@latest -g 之后,我不能使用另一个 npm 命令它只是说

(node:1948) [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.

这是安装后的日志和错误

在此处输入图像描述

标签: npm

解决方案


推荐阅读