npm中有些库需要从github上拉取,报错信息中提示:
/bin/git ls-remote -h -t git://github.com/adobe-webplatform/eve.git
fatal: unable to connect to github.com:
github.com[0: 20.205.243.166]: errno=Connection timed out
强制git使用https协议取代git协议可解决:
git config --global url."https://github.com/".insteadOf [email protected]:
git config --global url."https://".insteadOf git://
标签:npm,git,install,global,github,https,com From: https://www.cnblogs.com/tju1895/p/16955128.html