简体   繁体   中英

ngx-source-obfuscation with Angular 13

I find this error when I try to install ngx-source-obfuscation with Angular 13. Help me out to solve this error

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.

run npm install <dependencyName> --force or npm install <dependencyName> --legacy-peer-deps

This ignores version mismatches and installs the dependency without any issues

I am having the same issue.In the npm page of the library, documentation tells us that ngc-source-obfuscation's last version was published 2 years ago. And again documentation tells us it is suitable with Angular 8 or higher. Yes I accept it is suitable with Angular 8 or higher but since then Angular released major versions. Now we are at Angular 14. In my opinion owner of the library has never been updated his library.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM