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.loggitCmd 执行配置修改:【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"
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论