macbook执行npm instal报错:
error Command failed.
Exit code: 128
Command: git
Arguments: ls-remote --tags --heads git://github.com/adobe-webplatform/eve.git. Output:
fatal: unable to connect to github.com:
github.com[0: 20.205.243.166]: errno=Operation timed out
分析:Git 协议设置问题
当前使用的是 git://
协议,这种协议不使用加密,并且在一些网络环境中可能被限制。建议将其改为 https://
协议。
-
如果你希望之后所有新克隆的仓库都默认使用
https://
协议,可以执行以下命令:git config --global url."https://".insteadOf git://