npm报错:A complete log of this run can be fund in: C\Users\用户\AppData\Roaming\npm-cache_logs\解决方案(清理缓)

转自:https://blog.csdn.net/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

报错截图:

npm报错:A complete log of this run can be fund in: C\Users\用户\AppData\Roaming\npm-cache_logs\解决方案(清理缓)

这时你需要清理缓存了。
1.注:将node_modules文件夹先删除

2.清理缓存命令:

npm cache clean --force

3.重新安装一次即可

npm install /cnpm install 

4.如以上处理方式后,仍然报错,

可以先删除整个文件夹,重新新建文件夹后npm install即可


如有错误,欢迎指出,互相学习一起进步!!!!