从6号角更新到8号角时,我收到以下消息。
ng -v提供以下内容,
节点12.16.1
角6.1.2
打字稿3.6.4
我正在运行命令,ng update @ angular / cli @ 8 @ angular / core @ 8
packageGroup metadata of package @angular/cli is malformed. Ignoring.
packageGroup metadata of package @angular/cli is malformed.
packageGroup metadata of package @angular/cli is malformed. Ignoring.
packageGroup metadata of package @angular/cli is malformed. Ignoring.
packageGroup metadata of package @angular/cli is malformed.
packageGroup metadata of package @angular/cli is malformed. Ignoring.
packageGroup metadata of package @angular/cli is malformed. Ignoring.
.3.1 || >=4.0.0-beta <6.0.0" (extended), would install "8.2.14").
Package "codelyzer" has an incompatible peer dependency to "@angular/core" (requires
"^2.3.1 || >=4.0.0-beta <6.0.0" (extended), would install "8.2.14").
Package "codelyzer" has an incompatible peer dependency to "@angular/platform-browser"
(requires "^2.3.1 || >=4.0.0-beta <6.0.0" (extended), would install "8.2.14").
Package "codelyzer" has an incompatible peer dependency to "@angular/common" (requires
"^2.3.1 || >=4.0.0-beta <6.0.0" (extended), would install "8.2.14").
Package "codelyzer" has an incompatible peer dependency to "@angular/platform-browser-
dynamic" (requires "^2.3.1 || >=4.0.0-beta <6.0.0" (extended), would install "8.2.14").
Package "@angular/compiler-cli" has an incompatible peer dependency to "typescript"
(requires ">=3.4 <3.6", would install "3.6.4")
答案 0 :(得分:0)
从Angular 6到Angular 9,我尝试:
@angular/cli@7 @angular/core@7
npm audit fix
npm i @angular/forms@9.1.9
npm i @angular/platform-browser@9.1.9
npm i @angular/platform-browser-dynamic@9.1.9
npm i @angular/core@9.1.9
npm i @angular/compiler@9.1.9
npm i @angular/common@9.1.9
@angular/cli @angular/core