我在用npm i 安装依赖项的时候,报了一个‘npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache_logs\2020-08-10T03_32_17_014Z-debug.log
’
提示我升级npm,正确解决办法是:
- 执行 npm install npm@latest -g升级到最新版本
- 删除本地node_modules 依赖包
- 执行 npm cache clean --force 清理缓存
- 最后在 npm install 这样就好了