起因:下载安装的依赖包太大,导致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.gitnpm ERR!npm ERR! fatal: unable to access 'https://github.com/nhn/raphael.git/': OpenSSL SSL_read: Connection was reset, errno 10054npm ERR!npm ERR! exited with error code: 128npm 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.postBuffer52428800000