有没有人在将Angular应用从9升级到10时遇到以下问题:"Package '-e' is not a dependency." 当运行ng update @angular/core@10 @angular/cli@10时会出现此问题。 搜索了一下,但没有找到任何与我的问题匹配的结果(这可能是第一次)。
备份完成后: 首先尝试更新CLI。 npm i @angular/cli@10 然后核心ng update @angular/core@10 或者 ng update @angular/core@10 --force