簡體   English   中英

Npm Angular 安裝軟件包時出現警告

[英]Npm Angular Warning while installing packages

我在嘗試安裝軟件包時收到 npm 警告:

$ npm install
npm WARN @angular/compiler-cli@10.0.2 requires a peer of @angular/compiler@10.0.2 but none is installed. You must install peer dependencies yourself.

audited 1595 packages in 18.719s

58 packages are looking for funding
  run `npm fund` for details

found 294 low severity vulnerabilities
  run `npm audit fix` to fix them, or `npm audit` for details

為了解決上述對等問題警告,我嘗試安裝該對等依賴項並收到以下警告:

$ npm install @angular/compiler@10.0.2
npm WARN @angular/platform-browser-dynamic@8.2.14 requires a peer of @angular/compiler@8.2.14 but none is installed. You must install peer dependencies yourself.
npm WARN codelyzer@5.2.1 requires a peer of @angular/compiler@>=2.3.1 <10.0.0 || >9.0.0-beta <10.0.0 || >9.1.0-beta <10.0.0 || >9.2.0-beta <10.0.0 but none is installed. You must install peer dependencies yourself.

+ @angular/compiler@10.0.2
added 1 package from 1 contributor, updated 1 package and audited 1596 packages in 15.701s

58 packages are looking for funding
  run `npm fund` for details

found 294 low severity vulnerabilities
  run `npm audit fix` to fix them, or `npm audit` for details

誰能幫我這個?

您的 package.json 不會有@angular/compiler@10.0.2某些庫依賴於節點包世界中的其他庫,例如在這種情況下@angular/compiler-cli@10.0.2依賴或使用@angular/compiler@10.0.2的某些功能@angular/compiler@10.0.2

只需將@angular/compiler@10^添加到您的package.json並且下次運行 npm 安裝時將不會收到警告

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM