npm ERR! code ETIMEDOUT
npm ERR! syscall connect
npm ERR! errno ETIMEDOUT
npm ERR! network request to https://registry.npmmirror.com/bootstrap failed, reason: connect ETIMEDOUT 240e:9f:d005:0:3::3fb:443
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! A complete log of this run can be found in:
npm ERR! D:\tools\nodejs\node_cache\_logs\2022-11-03T09_28_53_978Z-debug-0.log
解决方法
- 关闭代理并清空
npm config set proxy null
- 清理缓存
npm cache clean --force
- 重新设置镜像源(以下提供两个国内源自选一个)
#淘宝源 npm config set registry https://registry.npm.taobao.org #华为源 npm config set registry https://repo.huaweicloud.com/repository/npm/
- 设置后再次清理缓存
npm cache clean -f
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。