npm-install - 我应该怎么做才能让命令 npm install 工作?
问题描述
错误信息:
npm ERR! Error while executing:
npm ERR! D:\Program Files\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
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Barnette\AppData\Roaming\npm-cache\_logs\2021-10-10T08_14_02_716Z-debug.log
我已经尝试过git config --system http.sslverify false
,然后重复npm install
,但它不起作用
我试过git config --global url."https://".insteadOf git://
了,也不行
顺便说一句,我为我的 GitHub 帐户设置了一个 SSH 密钥,我怀疑它对这个错误有一些潜在的影响。
解决方案
推荐阅读
- java - 了解 Android TV 活动生命周期
- azure-devops - 指定子区域时看不到 DevOps KanBan 中的错误
- datatables - 显示 DataTables 警告:table id=example1 - 无法重新初始化 DataTable
- wpf - 预览和运行程序的区别
- vue.js - 我必须用 Vue3 调用 unmount 吗?
- pine-script - 如何在 pine 脚本中移动目标栏?
- handlebars.js - 如何让 pug 呈现动态车把 css 类?
- python - Pytesseract 不识别小数点
- java - ANTLR 工具版本不匹配
- f# - 为什么不能为 F# struct tuple 声明类型别名?