解決 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構建服務同時恢復正常

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章