首页 > 解决方案 > 我应该怎么做才能让命令 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 密钥,我怀疑它对这个错误有一些潜在的影响。

标签: npm-install

解决方案


推荐阅读