簡體   English   中英

Angular 13 的 ngx-source-obfuscation

[英]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> --forcenpm 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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM