同一模块安装多次时报错,npm 清理缓存

版权声明:本文原创为夏狮狮,转载请说明出处! 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

在这里插入图片描述
这时你需要清理缓存了。
1.注:如有node_modules文件夹时先删除

2.清理缓存命令:

npm cache clean --force

3.重新安装一次即可

npm install /cnpm install 

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

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

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

猜你喜欢

转载自blog.csdn.net/weixin_42470791/article/details/82833415