Node Yarn 安装提示 Git 错误

错误信息如下:

[1/4] Resolving packages...
warning @ckeditor/[email protected]: The predefined builds are no longer maintained. Check the https://ckeditor.com/docs/ckeditor5/latest/updating/nim-migration/predefined-builds.html page for the details.
error Command failed.
Exit code: 128
Command: git
Arguments: ls-remote --tags --heads git://github.com/adobe-webplatform/eve.git
Directory: C:\WorkDir\iSharkFly\Source-Code\UI\Ui-Skote\Vue\Admin
Output:
fatal: unable to connect to github.com:
github.com[0: 140.82.114.4]: errno=Unknown error

解决方案

运行命令:

git config --local url."https://github.com/".insteadOf git://github.com

可以在本地的配置文件中添加 URL 的替换。

Git 的本地配置文件中,将会添加一段下面的内容:

[url "https://github.com/"]
	insteadOf = git://github.com/