1、清理缓存
npm cache clean --force
2、npm 7 或更高版本,可以尝试使用 --legacy-peer-deps 选项来安装依赖,可能会绕过一些兼容性问题
npm install --legacy-peer-deps
3、修复已知的安全漏洞和依赖问题
npm audit fix
1、清理缓存
npm cache clean --force
2、npm 7 或更高版本,可以尝试使用 --legacy-peer-deps 选项来安装依赖,可能会绕过一些兼容性问题
npm install --legacy-peer-deps
3、修复已知的安全漏洞和依赖问题
npm audit fix