Vue工作笔记0028---Vue项目报错_npm ERR_unable to resolve dependency tree_code CERT_HAS_EXPIRED_code EAI_AGAIN

npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree 
npm ERR! npm ERR! While resolving: ruoyi@3.8.6 npm ERR! Found: webpack@5.97.1 
npm ERR! node_modules/webpack npm ERR! peer webpack@"^4.0.0 || ^5.0.0" from html-webpack-plugin@4.5.2 
npm ERR! node_modules/html-webpack-plugin 
npm ERR! peer html-webpack-plugin@"^3.0.0 || ^4.0.0" from script-ext-html-webpack-plugin@2.1.5 
npm ERR! node_modules/script-ext-html-webpack-plugin 
npm ERR! dev script-ext-html-webpack-plugin@"2.1.5" from the root project 
npm ERR! 
npm ERR! Could not resolve dependency: npm ERR! peer webpack@"^1.0.0 || ^2.0.0 || ^3.0.0 || ^4.0.0" from script-ext-html-webpack-plugin@2.1.5 
npm ERR! node_modules/script-ext-html-webpack-plugin npm ERR! dev script-ext-html-webpack-plugin@
当你运行 "npm install @vitejs/plugin-vue-jsx" 命令时报错 "npm ERR! code ERESOLVE" 和 "npm ERR! ERESOLVE unable to resolve dependency tree",这通常是由于依赖树解析失败引起的。 解决这个问题的一种常见方法是执行以下步骤: 1. 首先,你可以尝试删除项目中的 node_modules 文件夹,你可以使用命令 "rm -rf node_modules" 来删除。 2. 接下来,清除 npm 缓存,可以使用命令 "npm cache clean --force" 来清除缓存。 3. 最后,重新安装依赖,可以使用命令 "npm install --legacy-peer-deps" 来下载依赖。 这些步骤可以帮助解决依赖树解析失败的问题,并重新安装项目所需的依赖。希望这能够解决你的问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree](https://blog.csdn.net/qq_37834631/article/details/131934117)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* [npm install报错peerDependencies WARNING eslint-plugin-vue@^5.2.3 requires a peer of eslint@^5.0.0 ...](https://download.csdn.net/download/weixin_38693311/14040615)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

添柴程序猿

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值