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

相关推荐
wow_DG22 分钟前
【Vue2 ✨】Vue2 入门之旅 · 进阶篇(八):Vuex 内部机制
前端·javascript·vue.js
若年封尘23 分钟前
吃透 Vue 样式穿透:从 scoped 原理到组件库样式修改实战
前端·javascript·vue.js·样式穿透·scoped
掘金安东尼33 分钟前
CSS 颜色混乱实验
前端·javascript·github
Zhen (Evan) Wang35 分钟前
.NET 6 文件下载
java·前端·.net
前端码农.38 分钟前
Element Plus 数字输入框箭头隐藏方案
前端·vue.js
李游Leo44 分钟前
npm / yarn / pnpm 包管理器对比与最佳实践(含国内镜像源配置与缓存优化)
前端·缓存·npm
Mintopia1 小时前
轻量化AIGC模型在移动端Web应用的适配技术
前端·javascript·aigc
Mintopia1 小时前
Next.js CI/CD 基础(GitHub Actions)
前端·javascript·next.js
草木红2 小时前
express 框架基础和 EJS 模板
arcgis·node.js·express
Wiktok2 小时前
pureadmin的动态路由和静态路由
前端·vue3·pureadmin