一、问题描述:
fatal: unable to connect to github.com: github.com[0: 20.205.243.166]: errno=Unknown error文章来源:https://www.toymoban.com/news/detail-767141.html
at ProcessTermError.ExtendableBuiltin (E:\nvm\v16.18.0\node_modules\yarn\lib\cli.js:721:66)
at ProcessTermError.MessageError (E:\nvm\v16.18.0\node_modules\yarn\lib\cli.js:750:123)
at new ProcessTermError (E:\nvm\v16.18.0\node_modules\yarn\lib\cli.js:790:113)
at ChildProcess.`<anonymous>` (E:\nvm\v16.18.0\node_modules\yarn\lib\cli.js:25787:17)
at ChildProcess.emit (node:events:513:28)
at maybeClose (node:internal/child_process:1100:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)
二、解决方案:
引发上述错误是因为 git 弃用了 git:
协议,所以只需要将 git 中的 git:
协议改成 https:
即可,命令如下:文章来源地址https://www.toymoban.com/news/detail-767141.html
git config --global url."https://".insteadOf git://
到了这里,关于fatal: unable to connect to github.com: github.com[0: 20.205.243.166]: errno=Unknown error的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!