1

原因:下载安装的依赖包太大,导致git请求超时了,可以通过修改git http.postBuffer的大小来控制超时时间。

npm ERR! Error while executing:
npm ERR! C:\Program Files\Git\mingw64\bin\git.EXE ls-remote -h -t https://github.com/nhn/raphael.git
npm ERR!
npm ERR! fatal: unable to access 'https://github.com/nhn/raphael.git/': OpenSSL SSL_read: Connection was reset, errno 10054
npm ERR!
npm ERR! exited with error code: 128

npm ERR! A complete log of this run can be found in:
npm ERR!     D:\jskExtensions\nodejs\node_cache\_logs\2021-05-28T07_14_41_807Z-debug.log

gitCmd 执行配置修改:【C:\Program Files\Git\mingw64\bin\git.EXE】

D:\2021\oa-admin\vue-element-admin>"C:\Program Files\Git\mingw64\bin\git.exe" config http.postBuffer 52428800000

检查配置是否生效:

git config http.postBuffer
52428800000

还是不行?试试这个:

git config --global http.sslVerify "false"

jiaoshengkang
9 声望1 粉丝

厨房诗人,编码爱好者,吉他粉丝。