npm install失败:npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree
2022/6/18 23:23:06
本文主要是介绍npm install失败:npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
在安装npm时发生错误:
npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: awescnb@3.0.0 npm ERR! Found: eslint@6.8.0 npm ERR! node_modules/eslint npm ERR! dev eslint@"^6.8.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer eslint@">=7.0.0" from eslint-config-prettier@8.3.0 npm ERR! node_modules/eslint-config-prettier npm ERR! dev eslint-config-prettier@"^8.3.0" 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 ERR! npm ERR! See C:\Users\12466\AppData\Local\npm-cache\eresolve-report.txt for a full report. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\12466\AppData\Local\npm-cache\_logs\2022-06-18T12_49_31_882Z-debug-0.log
解决方法
npm install --legacy-peer-deps
参考原文
这篇关于npm install失败:npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-11-23增量更新怎么做?-icode9专业技术文章分享
- 2024-11-23压缩包加密方案有哪些?-icode9专业技术文章分享
- 2024-11-23用shell怎么写一个开机时自动同步远程仓库的代码?-icode9专业技术文章分享
- 2024-11-23webman可以同步自己的仓库吗?-icode9专业技术文章分享
- 2024-11-23在 Webman 中怎么判断是否有某命令进程正在运行?-icode9专业技术文章分享
- 2024-11-23如何重置new Swiper?-icode9专业技术文章分享
- 2024-11-23oss直传有什么好处?-icode9专业技术文章分享
- 2024-11-23如何将oss直传封装成一个组件在其他页面调用时都可以使用?-icode9专业技术文章分享
- 2024-11-23怎么使用laravel 11在代码里获取路由列表?-icode9专业技术文章分享
- 2024-11-22怎么实现ansible playbook 备份代码中命名包含时间戳功能?-icode9专业技术文章分享