The unauthenticated git protocol on port 9418 is no longer supported.
问题描述
最近使用使用npm install遇到The unauthenticated git protocol on port 9418 is no longer supported.是因为新版本git提升安全性加入了新特性(2022.1.11)导致的。
解决办法
第1步,修改git配置
shell中执行git config --global --edit
打开git配置文件,添加如下内容
[url "https://"]
insteadOf = ssh://
[url "https://"]
insteadOf = git://
第2步,修改package.json配置
替换package.json中的git://github.com
为git://github.com/
具体可参考:https://github.com/che-incubator/che-workspace-telemetry-client/pull/76/files
参考:
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律