Node.js npm-如何在更新@angular/cli后修复错误代码ELIFECYCLE

Node.js npm-如何在更新@angular/cli后修复错误代码ELIFECYCLE,node.js,angular,npm,Node.js,Angular,Npm,在将@angular/cli全局和本地更新为最新版本后,我出现了此错误。我已尝试清理缓存、删除节点模块文件夹并重新安装,但错误仍然存在。希望有人知道如何解决这个问题 以下是更新后运行npm时的完整控制台日志: PS D:\KIS\名片前端项目>npm启动 名片-angular@0.0.0启动D:\KIS\名片前端项目 ng serve--主机0.0.0.0--代理配置proxyconfig.json trustedSubscriber.\u AddParentTeardDownLogic不是一个

在将@angular/cli全局和本地更新为最新版本后,我出现了此错误。我已尝试清理缓存、删除节点模块文件夹并重新安装,但错误仍然存在。希望有人知道如何解决这个问题

以下是更新后运行npm时的完整控制台日志:

PS D:\KIS\名片前端项目>npm启动

名片-angular@0.0.0启动D:\KIS\名片前端项目 ng serve--主机0.0.0.0--代理配置proxyconfig.json

trustedSubscriber.\u AddParentTeardDownLogic不是一个函数 TypeError:trustedSubscriber.\u AddParentTeardDownLogic不是函数 在MergeMapSubscriber.Subscriber[作为构造函数](D:\KIS\Name Card Frontend Project\node\u modules\rxjs\internal\Subscriber.js:45:43) 在MergeMapSubscriber.OuterSubscriber[作为构造函数](D:\KIS\Name Card Frontend Project\node\u modules\rxjs\internal\OuterSubscriber.js:20:42) 在新的MergeMapSubscriber(D:\KIS\Name Card Frontend Project\node\u modules\rxjs\internal\operators\mergeMap.js:48:28) 在MergeMapOperator.call(D:\KIS\Name Card Frontend Project\node\u modules\rxjs\internal\operators\mergeMap.js:39:33) 在Observable.subscribe(D:\KIS\Name Card Frontend Project\node\u modules\rxjs\internal\Observable.js:24:22) 位于D:\KIS\Name Card Frontend Project\node_modules\@angular\cli\node_modules\rxjs\internal\util\subscribeToObservable.js:10:20 在Object.subscribeToResult(D:\KIS\Name Card Frontend Project\node_modules\@angular\cli\node_modules\rxjs\internal\util\subscribeToResult.js:7:45) 位于MergeMapSubscriber.\u innerSub(D:\KIS\Name Card Frontend Project\node\u modules\@angular\cli\node\u modules\rxjs\internal\operators\mergeMap.js:75:38) 位于MergeMapSubscriber.\u tryNext(D:\KIS\Name Card Frontend Project\node\u modules\@angular\cli\node\u modules\rxjs\internal\operators\mergeMap.js:72:14) 在MergeMapSubscriber.\下一步(D:\KIS\Name Card Frontend Project\node\u modules\@angular\cli\node\u modules\rxjs\internal\operators\mergeMap.js:55:18) 在MergeMapSubscriber.Subscriber.next(D:\KIS\Name Card Frontend Project\node_modules\@angular\cli\node_modules\rxjs\internal\Subscriber.js:64:18) 在MapSubscriber.\u下一步(D:\KIS\Name Card Frontend Project\node\u modules\@angular\cli\node\u modules\rxjs\internal\operators\map.js:52:26) 在MapSubscriber.Subscriber.next(D:\KIS\Name Card Frontend Project\node_modules\@angular\cli\node_modules\rxjs\internal\Subscriber.js:64:18) 在TapSubscriber.\u下一步(D:\KIS\Name Card Frontend Project\node\u modules\@angular\cli\node\u modules\rxjs\internal\operators\tap.js:62:26) 在TapSubscriber.Subscriber.next(D:\KIS\Name Card Frontend Project\node_modules\@angular\cli\node_modules\rxjs\internal\Subscriber.js:64:18) 在MergeMapSubscriber.notifyNext(D:\KIS\Name Card Frontend Project\node_modules\@angular\cli\node_modules\rxjs\internal\operators\mergeMap.js:84:26) npm错误!代码失效循环 npm错误!错误1 npm错误!名片-angular@0.0.0开始:
ngserve--host 0.0.0.0--proxyconfig.json代理配置
npm错误!退出状态1 npm错误! npm错误!在名片上失败-angular@0.0.0开始脚本。 npm错误!这可能不是npm的问题。上面可能还有其他日志输出

npm错误!此运行的完整日志可在以下位置找到: npm错误!C:\Users\Dell\AppData\Roaming\npm-cache\u logs\2018-09-21T17\u 34\u 25\u 541Z-debug.log

更新 从上面链接的文件中注释
\u addParentTeardownLogic
函数后,错误消失。在注释模块的错误函数时,有时代码工作正常。真的不知道为什么他们添加这些函数只是为了发表评论