npm报错:A complete log of this run can be fund in: C\Users\用户\AppData\Roaming\npm-cache_logs\解决方案(清理缓)
转载原文链接:https://blog.youkuaiyun.com/weixin_42470791/article/details/82833415
情况描述:因项目中安装模块,多次不成功,所以导致报错。
A complete log of this run can be fund in: C\Users\用户\AppData\Roaming\npm-cache_logs\2018-9-24T10_55_24_806Z-debug.log
报错截图:
这时你需要清理缓存了。
1.注:将node_modules文件夹先删除
2.清理缓存命令:
npm cache clean --force
3.重新安装一次即可
npm install /cnpm install
4.如以上处理方式后,仍然报错,
可以先删除整个文件夹,重新新建文件夹后npm install即可