npm - 在 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.
这是安装后的日志和错误
解决方案
推荐阅读
- shell - 语法错误:“then”意外(预期“done”)
- c# - C#如何从webservice动态显示图像到gridview
- javascript - VSCode 错误的评论重复行为
- reactjs - 在 github 上发布 React 页面
- java - Selenium + JUnit,加载正确页面的断言错误
- html - 带有 WebP 回退和 data-src 的背景图像
- rascal - 迭代别名 rel [loc,str,int,int] 时“无法计算模式的类型”
- angular - Angular 订阅了 Observable 但不刷新/更新
- angular2-routing - Angular 2 routerLink 不可点击
- node.js - 如何仅使用编译文件安装节点依赖项?