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

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

起因:npm构建时报错

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

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

选择140.82.113.3

具体配置方法如下

jenkins构建服务同时恢复正常

发布了169 篇原创文章 · 获赞 43 · 访问量 38万+

猜你喜欢

转载自blog.csdn.net/hknaruto/article/details/105134485