一、问题描述
npm install时卡在sill idealTree buildDeps,安装速度慢,卡着不动。尝试链接1的方法,如下:
采用taobao的镜像地址,进入cmd之后输入以下指令查看taobao的镜像是否安装成功,指令如下:
npm config set registry https://registry.npm.taobao.org //采用taobao镜像地址
npm config get registry //验证镜像是否已安装成功
输入验证指令后,输出taobao的镜像地址,说明该镜像已安装。再次尝试npm install,仍然卡在sill idealTree buildDeps,安装速度慢,卡着五分钟了没见一点动弹,如下图:
二、解决方法
参考链接2。
1 月 22 日,淘宝原镜像域名(registry.npm.taobao.org
)的 HTTPS 证书正式到期。如果想要继续使用,需要将 npm 源切换到新的源(registry.npmmirror.com
),否则会报错!
输入新的指令:
// 1. 切换镜像源
npm config set registry https://registry.npmmirror.com
// 2. 检测是否切换成功
npm config get registry
再次尝试npm install,大概1分钟后,成功了。
三、参考链接
1、https://blog.csdn.net/weixin_60414376/article/details/124186484
2、npm 安装模块安装不上 ?https://www.zhihu.com/question/35511902/answer/3374636594
文章评论