系統環境: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構建服務同時恢復正常