npm install 报错ERESOLVE unable to resolve dependency tree

简介: npm install 报错ERESOLVE unable to resolve dependency tree

1异常信息

60 error code ERESOLVE
61 error ERESOLVE unable to resolve dependency tree
62 error
63 error While resolving: gg@0.0.0
63 error Found: @angular/compiler@11.0.9
63 error node_modules/@angular/compiler
63 error   @angular/compiler@"~11.0.4" from the root project
63 error
63 error Could not resolve dependency:
63 error peer @angular/compiler@"11.2.14" from @angular/compiler-cli@11.2.14
63 error node_modules/@angular/compiler-cli
63 error   peer @angular/compiler-cli@"^11.0.0" from @angular-devkit/build-angular@0.1100.7
63 error   node_modules/@angular-devkit/build-angular
63 error
63 error Fix the upstream dependency conflict, or retry
63 error this command with --force, or --legacy-peer-deps
63 error to accept an incorrect (and potentially broken) dependency resolution.
63 error
63 error See D:\nodejs\node_cache\eresolve-report.txt for a full report.
64 verbose exit 1

解决:

设置可以安装旧包:npm config set legacy-peer-deps true

Linux:sudo npm config set legacy-peer-deps true

相关文章
vue中npm打包遇到× eslint —fix found some errors. Please fix them and try committing again.husky > pre-commit hook failed (add —no-verify to bypass)报错解决方案-卓伊凡
vue中npm打包遇到× eslint —fix found some errors. Please fix them and try committing again.husky > pre-commit hook failed (add —no-verify to bypass)报错解决方案-卓伊凡
62 7
vue中npm打包遇到× eslint —fix found some errors. Please fix them and try committing again.husky > pre-commit hook failed (add —no-verify to bypass)报错解决方案-卓伊凡
|
4月前
|
node环境之Error: Cannot find module ‘chalk’ 报错无法解决的问题—-网上说让你npm install chalk 基本是没有用的-优雅草央千澈解决方案
node环境之Error: Cannot find module ‘chalk’ 报错无法解决的问题—-网上说让你npm install chalk 基本是没有用的-优雅草央千澈解决方案
292 13
node环境之Error: Cannot find module ‘chalk’ 报错无法解决的问题—-网上说让你npm install chalk 基本是没有用的-优雅草央千澈解决方案
|
3月前
node环境之当我们遇到需要付费的依赖库@fortawesome/fontawesome-pro导致npm install无法进行怎么办-fontawesome-pro依赖库
node环境之当我们遇到需要付费的依赖库@fortawesome/fontawesome-pro导致npm install无法进行怎么办-fontawesome-pro依赖库
66 3
node环境之当我们遇到需要付费的依赖库@fortawesome/fontawesome-pro导致npm install无法进行怎么办-fontawesome-pro依赖库
为什么npm run serve正常,npm run build就报错:digital envelope routines::unsupported
通过本文的分析,我们详细介绍了 `npm run serve`正常但 `npm run build`时报错:`digital envelope routines::unsupported`的原因及解决方案。主要从检查Node.js版本、更新依赖、检查依赖库、配置文件及环境变量等方面进行了深入探讨。希望本文能帮助开发者解决这一问题,确保项目顺利构建和部署。
339 6
拿下奇怪的前端报错(三):npm install卡住了一个钟- 从原理搞定安装的全链路问题
本文详细分析了 `npm install` 过程中可能出现的卡顿问题及解决方法,包括网络问题、Node.js 版本不兼容、缓存问题、权限问题、包冲突、过时的 npm 版本、系统资源不足和脚本问题等,并提供了相应的解决策略。同时,还介绍了开启全部日志、使用替代工具和使用 Docker 提供 Node 环境等其他处理方法。
4035 1
9-14|npm install --global windows-build-tools 安装太慢了,能够指定国内源
9-14|npm install --global windows-build-tools 安装太慢了,能够指定国内源
8种方法解决vue创建项目报错:command failed: npm install --loglevel error
该文章提供了八种解决Vue项目创建时遇到的`command failed: npm install --loglevel error`错误的方法,包括清理缓存、更换npm源、重新安装Node.js等措施。
8种方法解决vue创建项目报错:command failed: npm install --loglevel error
【node】 npm install 报错:code 128
【node】 npm install 报错:code 128
320 1
npm install 报错 npm ERR! puppeteer@1.20.0 install: `node install.js`
npm install 报错 npm ERR! puppeteer@1.20.0 install: `node install.js`
424 0
|
9月前
|
npm install 报错 import sys; print“%s.%s.%s”% sys.version_info[ :3] ;
npm install 报错 import sys; print“%s.%s.%s”% sys.version_info[ :3] ;
260 3

热门文章

最新文章

推荐镜像

更多