当我试图安装角度13的ngx-source-obfuscation时,我发现了这个错误。
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: (myProject)@0.0.0
npm ERR! Found: rxjs@7.5.5
npm ERR! node_modules/rxjs
npm ERR! rxjs@"~7.5.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer rxjs@"^6.5.0" from @srag/ngx-source-obfuscation@2.0.0
npm ERR! node_modules/@srag/ngx-source-obfuscation
npm ERR! dev @srag/ngx-source-obfuscation@"*" 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.发布于 2022-04-08 14:33:41
运行npm install <dependencyName> --force或npm install <dependencyName> --legacy-peer-deps
这会忽略版本不匹配,并在没有任何问题的情况下安装依赖项。
发布于 2022-07-07 16:26:16
我有同样的issue.In --图书馆的npm页面,文档告诉我们,ngc源代码混淆的上一个版本是两年前出版的。文档再次告诉我们,它适合于角8或更高的情况。是的,我接受它适合与角8或更高,但从那时起角释放主要版本。在我看来,图书馆的主人从来没有更新过他的图书馆。
https://stackoverflow.com/questions/71777732
复制相似问题