npm インストール エラー コード 128

エラー内容

npm ERR! Error while executing:
npm ERR! C:\Program Files\Git\cmd\git.EXE ls-remote -h -t git://github.com/adobe-webplatform/eve.git
npm ERR!
npm ERR! fatal: unable to connect to github.com:
npm ERR! github.com[0: 140.82.114.3]: errno=Unknown error
npm ERR!
npm ERR!
npm ERR! exited with error code: 128

npm ERR! A complete log of this run can be found in:

理由分析:
Baidu は多くの理由を発見しましたが、そのほとんどは次の 2 つの可能性があります: ① ssl 証明書がない ② Git ダウンロードがサポートされていない。私がここに来たのは 2 番目の理由です。

解決策:
② git:// を https:// に置き換えます。

git config --global url."https://".insteadOf git://

おすすめ

転載: blog.csdn.net/qq_37291367/article/details/121231244