• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

request to httphotoshop://registry.npm.taobao.org/jsprim failed, reason: connect ETIMEDOUT 错误解决方案

武飞扬头像
redfore
帮助1

使用npm安装任何包,安装半天进度条一动不动最后超时错误。

npm install nrm -g
npm ERR! code ETIMEDOUT
npm ERR! syscall connect
npm ERR! errno ETIMEDOUT
npm ERR! network request to https://registry.npm.taobao.org/jsprim failed, reason: connect ETIMEDOUT 36.158.205.19:443
npm ERR! network This is a problem related to network connectivity.
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:\my_apps\nodeJS\node_cache_logs\2022-04-18T06_53_14_782Z-debug-0.log

查来查去node都换了几个版本,path路径,npm配置都没用。结果一切的原因只是淘宝镜像换了新域名……

直接搜索报错信息,排在前列的一切解决方法都是用的旧域名,导致始终解决不了问题。

淘宝镜像现官网:http://www.npmmirror.com/

终端输入:

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

即可体验快速装包

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /boutique/detail/tanhgeafic
系列文章
更多 icon
同类精品
更多 icon
继续加载