[英]ngx-source-obfuscation with Angular 13
当我尝试使用 Angular 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.
运行npm install <dependencyName> --force
或npm install <dependencyName> --legacy-peer-deps
这会忽略版本不匹配并安装依赖项而没有任何问题
我遇到了同样的问题。在库的 npm 页面中,文档告诉我们 ngc-source-obfuscation 的最新版本是 2 年前发布的。 文档再次告诉我们它适用于 Angular 8 或更高版本。 是的,我接受它适用于 Angular 8 或更高版本,但从那时起 Angular 发布了主要版本。 现在我们在 Angular 14。在我看来,图书馆的所有者从未更新过他的图书馆。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.