github 上拉取项目npm install 时报128错误

这篇博客主要讨论了在使用npm安装依赖时遇到的Git错误,具体表现为尝试访问GitHub仓库时因权限问题失败。错误信息包括'Permission denied'和'Could not read from remote repository'。解决方案提到关闭防火墙,尤其是类似火绒这样的安全软件,可以解决这个问题。博客还提到了日志文件的位置,供进一步排查问题。
摘要由CSDN通过智能技术生成

错误信息:
npm ERR! code 128
npm ERR! An unknown git error occurred
npm ERR! command git --no-replace-objects ls-remote ssh://git@github.com/nhn/raphael.git
npm ERR! ssh: connect to host github.com port 22: Permission denied
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\xxx\AppData\Local\npm-cache_logs\2022-xx-xxT06_43_48_525Z-debug-0.log

没有什么花里胡哨的,关掉火绒,直接OK。

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值