如何在Angular应用中安装这个依赖?

huangapple go评论49阅读模式
英文:

How can I install this dependency in angular app

问题

在使用Angular进行项目开发时,想安装依赖,但遇到了这个问题。如何解决?描述

英文:

Working on my project using angular, wanted to install dependency, but this happened. How can I fix this? Description

答案1

得分: 1

错误信息显示ngx-simple-countdown@13.0.1需要@angular/common版本13.3+,但您的项目只有~13.2.0(仅更新了修补程序版本)。

因此,您需要在运行npm i时安装@angular/common@13.3+版本,并使用"--legacy-peer-deps"选项来跳过安装对等依赖项(更多信息请参阅这里)。

英文:

Error says that ngx-simple-countdown@13.0.1 requires @angular/common version 13.3+, but your project has ~13.2.0 (updated only patch version).

So you need to install @angular/common@13.3+ version on run npm i with "--legacy-peer-deps" that will skip installing peer deps (more you can read Here)

huangapple
  • 本文由 发表于 2023年2月9日 03:43:24
  • 转载请务必保留本文链接:https://go.coder-hub.com/75390981.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定