解决 github项目clone报错 Failed connect to github.com:443; Connection

怼烎@ 2023-07-18 12:35 80阅读 0赞

系统环境:CentOS Linux release 7.6.1810 (Core)

起因:npm构建时报错

  1. npm ERR! Error while executing:
  2. npm ERR! /usr/bin/git ls-remote -h -t https://github.com/nhn/raphael.git
  3. npm ERR!
  4. npm ERR! fatal: unable to access 'https://github.com/nhn/raphael.git/': Failed connect to github.com:443; Connection timed out
  5. npm ERR!
  6. npm ERR! exited with error code: 128

初步估计应该还是DNS劫持github.com导致,直接去http://ping.chinaz.com/找海外节点信息

watermark_type_ZmFuZ3poZW5naGVpdGk_shadow_10_text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2hrbmFydXRv_size_16_color_FFFFFF_t_70

选择140.82.113.3

具体配置方法如下

20200327095132934.gif

jenkins构建服务同时恢复正常

发表评论

表情:
评论列表 (有 0 条评论,80人围观)

还没有评论,来说两句吧...

相关阅读