npm 安装是一直卡在idealTree:npm:sill idealTree buildDeps无反应

发布时间 2023-12-14 10:08:31作者: £AP︶ㄣOL◢◤LO

最近npm install下载依赖出现一直卡在idealTree:npm:sill idealTree buildDeps,最后出现request to https://registry.npmjs.org/simple-zustand-devtools failed, reason: connect ETIMEDOUT 104.16.3.35:443 连接超时?

于是 ping registry.npmjs.org 下这个网站是能够正常连接的,但是就是无法正常npm install,最后按下面才步骤才解决?

  1.设置镜像源

    npm config set registry https://registry.npmmirror.com

  2.查看npm当前镜像源是否是https://registry.npmmirror.com

    npm config get registry

  3.接下来运行npm安装依赖即可