卡在checking installable status

npm install卡在checking installable status

笔者在使用NPM过程中经常会用到npm install命令,发现有时候会卡在checking installable status不动,在网上搜寻了各种解决方法之后在这里做一个记录。

原因

  • 修改过仓库源(淘宝源之类的)
  • 远程仓库连接
  • 旧的npm缓存与项目冲突

解决方案

打开资源管理器,地址栏输入
C:Users用户名AppDataRoaming

这里需要根据自己用户名修改路径

回车进入npm目录
找到npmnpm-cache两个文件夹删除
这里写图片描述

重新打开终端尝试npm下载。问题解决

原文地址:https://www.cnblogs.com/YooHoeh/p/9107065.html