angular universal - ERESOLVE 无法解析依赖树

问题描述 投票:0回答:0

不能安装angular universal。 SO 上的所有 hack 都不起作用。看来angular并没有真正保持通用。有靠谱的办法吗?使用 --force 或 --legacy-peer-deps 无效。

The package @nguniversal/[email protected] will be installed and executed.
Would you like to proceed? Yes
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: @angular/[email protected]
npm ERR! node_modules/@angular/animations
npm ERR!   @angular/animations@"~13.2.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/animations@"13.3.12" from @angular/[email protected]
npm ERR! node_modules/@angular/platform-server
npm ERR!   peer @angular/platform-server@"^13.1.0" from @nguniversal/[email protected]
npm ERR!   node_modules/@nguniversal/express-engine
npm ERR!     @nguniversal/express-engine@"13.0.2" 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 ERR! For a full report see:

ng 新宠-万能 CD宠物通用 ng 添加@nguniversal/express-engine

angular angular-universal
© www.soinside.com 2019 - 2024. All rights reserved.