[英]Webpack warning when upgrading Angular 6
我將Angular從6.0.0版本升級到6.1.3。 運行ng update @angular/core
我得到以下警告:
npm WARN @ngtools/webpack@6.0.8 requires a peer of typescript@~2.4.0 ||
~2.5.0 || ~2.6.0 || ~2.7.0 but none is installed. You must install
peer dependencies yourself.
peer of typescript
的peer of typescript
什么意思? 根據ng -version
,安裝了typescript。 @ngtools/webpack
正在尋找什么版本?
ng -version:
Angular CLI: 6.1.4
Node: 8.9.1
OS: win32 x64
Angular: 6.1.3
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.6.8
@angular-devkit/build-angular 0.6.8
@angular-devkit/build-optimizer 0.6.8
@angular-devkit/core 0.6.8
@angular-devkit/schematics 0.7.4
@angular/cli 6.1.4
@ngtools/webpack 6.0.8
@schematics/angular 0.7.4
@schematics/update 0.7.4
rxjs 6.2.2
typescript 2.9.2
webpack 4.8.3
將“ @ angular-devkit / build-angular”更新為0.7.4以修復上述錯誤。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.