npm-更新@ angular / cli

时间:2018-09-21 17:41:26

标签: node.js angular npm

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

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

  

PS D:\ KIS \ Name-Card-Frontend-Project> npm start

     

name-card-angular@0.0.0开始D:\ KIS \ Name-Card-Frontend-Project   ng serve --host 0.0.0.0 --proxy-config proxyconfig.json

     

trustedSubscriber._addParentTeardownLogic不是函数   TypeError:trustedSubscriber._addParentTeardownLogic不是函数       在MergeMapSubscriber.Subscriber处[作为构造函数](D:\ KIS \ Name-Card-Frontend-Project \ node_modules \ rxjs \ internal \ Subscriber.js:45:43)       在MergeMapSubscriber.OuterSubscriber处[作为构造函数](D:\ KIS \ Name-Card-Frontend-Project \ node_modules \ rxjs \ internal \ OuterSubscriber.js:20:42)       在新的MergeMapSubscriber(D:\ KIS \ Name-Card-Frontend-Project \ node_modules \ rxjs \ internal \ operators \ mergeMap.js:48:28)       在MergeMapOperator.call(D:\ KIS \ Name-Card-Frontend-Project \ node_modules \ rxjs \ internal \ operators \ mergeMap.js:39:33)       在Observable.subscribe(D:\ KIS \ Name-Card-Frontend-Project \ node_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._innerSub(D:\ KIS \ Name-Card-Frontend-Project \ node_modules \ @angular \ cli \ node_modules \ rxjs \ internal \ operators \ mergeMap.js:75:38)       在MergeMapSubscriber._tryNext(D:\ KIS \ Name-Card-Frontend-Project \ node_modules \ @angular \ cli \ node_modules \ rxjs \ internal \ operators \ mergeMap.js:72:14)       在MergeMapSubscriber._next(D:\ KIS \ Name-Card-Frontend-Project \ node_modules \ @angular \ cli \ node_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._next(D:\ KIS \ Name-Card-Frontend-Project \ node_modules \ @angular \ cli \ node_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._next(D:\ KIS \ Name-Card-Frontend-Project \ node_modules \ @angular \ cli \ node_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 ERR!代码ELIFECYCLE   npm ERR! errno 1   npm ERR! name-card-angular@0.0.0开头:{{1}   npm ERR!退出状态1   npm ERR!   npm ERR!在name-card-angular@0.0.0启动脚本处失败。   npm ERR! npm可能不是问题。上面可能还有其他日志记录输出。

     

npm错误!可以在以下位置找到此运行的完整日志:   npm ERR! C:\ Users \ Dell \ AppData \ Roaming \ npm-cache_logs \ 2018-09-21T17_34_25_541Z-debug.log

更新 在以上链接的文件中注释了ng serve --host 0.0.0.0 --proxy-config proxyconfig.json函数后,错误消失了。在注释模块的错误功能时,有时代码可以正常工作。真的不知道为什么他们添加这些功能只是为了被评论吗?

0 个答案:

没有答案