所以我运行了 npm outdated 并尝试在那里安装一些过时的东西,但不知道它到底做了什么,认为我应该更新它们。 这就是我真正需要的。我需要安装角火,这表明
⠏ Installing packages (npm)...npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @ionic/[email protected]
npm ERR! Found: @angular/[email protected]
npm ERR! node_modules/@angular/animations
npm ERR! @angular/animations@"^17.0.2" from the root project
npm ERR! peerOptional @angular/animations@"17.2.1" from @angular/[email protected]
npm ERR! node_modules/@angular/platform-browser
npm ERR! @angular/platform-browser@"^17.0.2" from the root project
npm ERR! peer @angular/platform-browser@"^17.0.0" from @angular/[email protected]
npm ERR! node_modules/@angular/fire
npm ERR! @angular/fire@"^17.0.1" from the root project
npm ERR! 3 more (@angular/forms, @angular/platform-browser-dynamic, @angular/router)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/platform-server@">=14.0.0" from @ionic/[email protected]
npm ERR! node_modules/@ionic/angular-server
npm ERR! @ionic/angular-server@"^7.7.4" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @angular/[email protected]
npm ERR! node_modules/@angular/animations
npm ERR! peer @angular/animations@"17.2.4" from @angular/[email protected]
npm ERR! node_modules/@angular/platform-server
npm ERR! peer @angular/platform-server@">=14.0.0" from @ionic/[email protected]
npm ERR! node_modules/@ionic/angular-server
npm ERR! @ionic/angular-server@"^7.7.4" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
角度动画还没有出现在我的项目想要的版本上,因为当我尝试更新它时,还存在兼容性问题
只需带着强制标志运行即可。
npm install @angular/fire --force