🔔🔔🔔好消息!好消息!🔔🔔🔔

有需要的朋友👉:微信号 kaigejava2022

【已解决】在使用npm install的时候提示错误 npm ERR! command git --no-replace-objects ls-remote ssh://git@github.com/xxx怎么解决?

2023-11-22 11:49   2365 浏览

在使用npm install的时候提示错误 npm ERR! command git --no-replace-objects ls-remote ssh://git@github.com/xxx怎么解决?

错误如下图:

bdce1e6c3c6f46d3dd4e15a8b1b8b9be.png


解决方案:

1.想办法连接连接到外网,可以正常访问GitHub

直接在项目中执行下面命令:

 git config --global url."https://".insteadOf git://

重新npm install ,最后成功了。



喜欢 0

评论