小编Kav*_*dya的帖子

如何修复 ERESOLVE 无法解析 npm install 的依赖关系树

我目前对角度和自学还比较陌生。以前一切都工作正常,直到我决定将很多新东西导入到我的项目中。简而言之,我发现我可以删除 node_modules 并运行 npm install。删除它后,当我运行 npm install 时出现以下错误。

npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: appla-katta@0.0.0
npm ERR! Found: @angular/common@12.2.16
npm ERR! node_modules/@angular/common
npm ERR!   @angular/common@"~12.2.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@"^14.0.0 || ^15.0.0" from @angular/cdk@14.0.2
npm ERR! node_modules/@angular/cdk
npm ERR!   @angular/cdk@"14.0.2" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, …
Run Code Online (Sandbox Code Playgroud)

npm typescript package.json npm-install angular

14
推荐指数
1
解决办法
5万
查看次数

标签 统计

angular ×1

npm ×1

npm-install ×1

package.json ×1

typescript ×1