我正在从 Angular 11 升级到 Angular 14。
我已经解决了除其中一个之外的所有对等依赖项。
npm ERR! Found: @angular/[email protected]
npm ERR! node_modules/@angular/common
npm ERR! @angular/common@"14.2.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@"^7.2.0" from [email protected]
npm ERR! node_modules/angular-tilt
npm ERR! angular-tilt@"1.1.0" from the root project
如何解决对等依赖
[email protected]
?
如果你想冒险使用这个过时的软件包
你可以跑
npm i --legacy-peer-deps
--legacy-peer-deps
跳过所有对等依赖项的安装,并给出有关对等依赖项的警告,以注意开发人员手动安装它们。