C:\Program Files\Git\cmd\git.EXE ls-remote -h -t https://github.com/nhn/raphael.git
npm ERR! Error while executing:
npm ERR! C:\Program Files\Giticmd\git.EXE ls-remote -h -t https:l/github.com/mhn/raphael.git
npm ERR!
npm ERR error: RPC failed; curl 28 OpenSSL ssL_read: Connection was reset,errno 10054
npm ERR! fatal: expected flush after ref listing
npm ERR!
npm ERR! exited with error code: 128
npm ERR! A complete log of this run can be found in:npm ERR!
c:\Users\zhouxkAppData\RoamingVnpm-cachel_logs\2021-88-25T07_43_48_453Z-debug.log
可以清除DNS
执行命令ipconfig /flushdns
如果报错
无法将“ipconfig/flushdns”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。
斜杆前面一定要空格

博客记录了npm使用git拉取远程仓库时出现的错误,如RPC失败、连接重置等,错误代码为128。同时给出了解决办法,可清除DNS,执行命令ipconfig /flushdns,若报错需注意斜杆前要有空格。

5232

被折叠的 条评论
为什么被折叠?



