npm ERR! exited with error code: 128

1.遇到的问题

报错信息:npm ERR! E:\tools\Gitt\Git\cmd\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

2.尝试的办法

升级npm,配置https都不行

git config --global url."https://".insteadOf git://

npm install

3.解决办法

想办法连接外网,可以稳定连接github。

重新npm install安装,结果一看最后还是报了一个错误,但是仔细一看不是之前的错误而是另一个错误,一看这就有可能解决。

这时候突然想到替换连接为git://

git config --global url."https://".insteadOf git://

重新npm install ,最后成功了。

npm WARN babel-plugin-polyfill-regenerator@0.5.3 requires a peer of @babel/core@^7.4.0 || ^8.0.0-0 <8.0.0 but none is installed. You must install peer dependencies yourself.

npm WARN @babel/helper-define-polyfill-provider@0.4.3 requires a peer of @babel/core@^7.4.0 || ^8.0.0-0 <8.0.0 but none is installed. You must install peer dependencies yourself.

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.1 (node_modules\quill-image-resize-module\node_modules\fsevents):

npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

added 2539 packages from 2214 contributors in 330.979s

100 packages are looking for funding

run `npm fund` for details

相关推荐
KooFE2 分钟前
AI 重塑研发体系,从技能驱动到意图驱动
前端·ai编程
枣把儿6 分钟前
剪贴板、截图标注、长截图、自动运镜录屏,我全塞进一个不到 3MB 的免费开源软件里
前端·macos·swiftui
圆心角7 分钟前
AI 前端面试:失败重试、知识库、MCP 和大文档,问到多深
前端·面试·ai编程
徐小夕10 分钟前
JitKnow 5.0发布:让AI知识库变成可组装的知识中台
前端·vue.js·github
圆心角12 分钟前
2026 前端面试:拆完 11 篇 AI 面经,这 10 个方向必考
前端·面试·ai编程
dadaobusi15 分钟前
学习:noc死锁
java·服务器·前端
*Snowgrass*19 分钟前
npm简要介绍
前端·npm·node.js
斯内普吖29 分钟前
(开源)校园资料分享平台实战指南 基于 Node.js + Express + Vue + MySQL
vue.js·mysql·开源·node.js·express
圆心角35 分钟前
AI 没有抢走你的工作,它拆了你的训练场
前端·人工智能·ai编程
map_3d_vis38 分钟前
百度地图信息窗口 InfoWindow 与自定义样式(JSAPI 4.0)
前端·javascript·地图·百度地图