我有 angular 10 应用程序,它导致运行 npm i
时出错。我已经尝试过 npm i --force
和 npm i --legacy-peer-deps
并且还尝试了不同版本的节点。但它也不适用于我的情况。
错误如下:
`npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: dropsite-client@6.1.1
npm ERR! Found: zone.js@0.11.4
npm ERR! node_modules/zone.js
npm ERR! zone.js@"~0.11.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer zone.js@"~0.10.3" from @angular/core@10.2.5
npm ERR! node_modules/@angular/core
npm ERR! @angular/core@"^10.0.0" from the root project
npm ERR! peer @angular/core@">=10.0.0" from @ngx-translate/core@13.0.0
npm ERR! node_modules/@ngx-translate/core
npm ERR! @ngx-translate/core@"^13.0.0" from the root project
npm ERR! 1 more (@dropsite/tab-view)
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.`