乐趣区

关于vue.js:npm-install-报错-errno-10054-gitCmd-下设置-httppostBuffer

起因:下载安装的依赖包太大,导致 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
退出移动版