npm install 报错 errno 10054 gitCmd 下设置 http.postBuffer

Posted jiaoshengkang

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了npm install 报错 errno 10054 gitCmd 下设置 http.postBuffer相关的知识,希望对你有一定的参考价值。

原因:下载安装的依赖包太大,导致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"

以上是关于npm install 报错 errno 10054 gitCmd 下设置 http.postBuffer的主要内容,如果未能解决你的问题,请参考以下文章

npm install 报错 errno 10054 gitCmd 下设置 http.postBuffer

npm install 报错(npm ERR! errno -4048,Error: EPERM: operation not permitted,)解决方法

npm install 报错(npm ERR! errno -4048,Error: EPERM: operation not permitted,)解决方法

输入npm install 报错npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-sass@4.13.1 postinstall: `no

Kibana问题搜集---下载源码,执行npm install 报错

npm install 报错 --ignore-scripts