如何解决错误 ng-snotify 在从 8 更新到 angular 9 之前具有不兼容的对等依赖项?

How to resolve error ng-snotify has an incomptible peer dependency before updating to angular 9 from 8?

我正在使用 this guide 将 angular 6 应用程序更新到 angular 9,逐步从 6 到 7 到 8 到 9。

现在我只需要将 v8 更新到 v9,但我在对等依赖性方面遇到了一些问题。我不得不在我的 angular 更新中使用 force,这是第二次尝试,我希望这次我没有使用 --force。

ng update @angular/core@9 @angular/cli@9 --force

ng-snotify 文档对于显示 angular 之前的所需版本没有帮助,即使是 7.0 和 8.0.0 之类的版本在我尝试时未注册

如何在更新到 angular 9 之前修复 ng-snotify 对等依赖?

  ng update ng-snotify@8.0.0

例如!

PS C:\Users\Salma\source\Zippyyum\Zippyyum_DCOrdering-Web> ng update @angular/core@9 @angular/cli@9 --force 安装的本地 Angular CLI 版本比最新的稳定版本旧。 安装临时版本以执行更新。 通过 npm 安装工具包。 通过 npm 为工具安装包。 使用包管理器:'npm' 正在收集已安装的依赖项... 找到 53 个依赖项。 正在从注册表中获取依赖元数据... 软件包“ng-snotify”对“@angular/core”具有不兼容的对等依赖性(需要“^4.0.0 || ^5.0.0 || ^6.0.0”(扩展),将安装“9.1.13 ”)。 软件包“ng-snotify”对“zone.js”具有不兼容的对等依赖性(需要“^0.8.4”,将安装“0.10.3”)。

升级到 9 时我不得不使用 --force,ng-snotify 包没有全部找到并且没有明确指定与 angular 版本兼容的版本。

知道如何在不使用 --force 的情况下解决 ng-snotify 和更新问题吗?

我用力更新到Angular 9,但之后我用

更新了包
ng update ng-snotify

然后清理节点模块, 然后 npm install 然后 npm start 并且有效