系统环境: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构建服务同时恢复正常
作者:hkNaruto