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装一个一样的版本
安装之后的运行结果: