npm ERR! A complete log of this run can be found in: npm ERR! 、Npm - run ‘npm audit fix`to fix 解决方案

5 篇文章 0 订阅
4 篇文章 0 订阅

npm ERR! A complete log of this run can be found in: npm ERR! 、Npm - run 'npm audit fix`to fix 解决方案

项目遇到的问题如下图:

在这里插入图片描述

在这里插入图片描述
在这里插入图片描述

方案一:运行报错提示中的代码

npm audit fix
npm audit fix --fpce
npm audit
之后运行 
npm install
直接运行npm:
npm run serve

方案二:npm清除缓存

快捷方法:
npm cache clean -f
.删除 C:\Users\{账户}\下的.npmrc文件后执行
慢方法:npm缓存在C:\Users\jiuqi\AppData\Roaming\npm-cache,大家可以类比找到npm-cache文件,直接删了,重新npm install即可

如果以上方案还不行:注意node的版本适用的系统位数

我的解决方案…00.(整了3小时)

项目的自带node与本机安装的node版本不一致,卸载本地node装一个一样的版本在这里插入图片描述
安装之后的运行结果:
在这里插入图片描述

npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: vue01@0.1.0 npm ERR! Found: vue@2.7.14 npm ERR! node_modules/vue npm ERR! peerOptional vue@"^2 || ^3.2.13" from @vue/babel-preset-app@5.0.8 npm ERR! node_modules/@vue/babel-preset-app npm ERR! @vue/babel-preset-app@"^5.0.8" from @vue/cli-plugin-babel@5.0.8 npm ERR! node_modules/@vue/cli-plugin-babel npm ERR! dev @vue/cli-plugin-babel@"~5.0.0" from the root project npm ERR! peerOptional vue@"*" from @vue/babel-preset-jsx@1.4.0 npm ERR! node_modules/@vue/babel-preset-jsx npm ERR! @vue/babel-preset-jsx@"^1.1.2" from @vue/babel-preset-app@5.0.8 npm ERR! node_modules/@vue/babel-preset-app npm ERR! @vue/babel-preset-app@"^5.0.8" from @vue/cli-plugin-babel@5.0.8 npm ERR! node_modules/@vue/cli-plugin-babel npm ERR! dev @vue/cli-plugin-babel@"~5.0.0" from the root project npm ERR! 3 more (vue-baidu-map, vuex, the root project) npm ERR! npm ERR! Could not resolve dependency: npm ERR! @ant-design/icons-vue@"^6.1.0" from the root project npm ERR! npm ERR! Conflicting peer dependency: vue@3.0.3 npm ERR! node_modules/vue npm ERR! peer vue@">=3.0.3" from @ant-design/icons-vue@6.1.0 npm ERR! node_modules/@ant-design/icons-vue npm ERR! @ant-design/icons-vue@"^6.1.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! npm ERR! For a full report see: npm ERR! E:\nodejs\node_cache\_logs\2023-06-12T01_03_10_463Z-eresolve-report.txt npm ERR! A complete log of this run can be found in: E:\nodejs\node_cache\_logs\2023-06-12T01_03_10_463Z-debug-0.log
06-13
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值