npm install 报错:xx/git.EXE ls-remote -h -t ssh://[email protected]/sohee-lee7/Squire.git

npm install 报错:xx/git.EXE ls-remote -h -t ssh://[email protected]/sohee-lee7/Squire.git

网上的教程是这样:

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

但是还是会报错,我的做法是在.gitconfig中会生成如下2个配置 (主要是缺ssh://git@)

 [url "https://"]
    insteadOf = ssh://git@
    
[url "https://"]
    insteadOf = git://