C/C++教程

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

本文主要是介绍npm报错:A complete log of this run can be fund in: C\Users\用户\AppData\Roaming\npm-cache_logs\解决方,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

因项目中安装模块,多次不成功,所以导致报错。
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 

如果生成了node_modules说明成功了

这篇关于npm报错:A complete log of this run can be fund in: C\Users\用户\AppData\Roaming\npm-cache_logs\解决方的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!