npm install报错
- C:\Program Files\Git\cmd\git.EXE ls-remote -h -t ssh://git@github.com/sohee-lee7/Squire.git

设置git配置
git config --global url."https://".insteadOf git://
清除缓存
npm cache clean --force
或
ipconfig /flushdns
重新安装
npm install
或
npm install --registry=https://registry.npm.taobao.org
提示
- 有时按上面的操作可能还会出错,多操作几次就好了
本文档介绍了在执行npm install时遇到的问题及解决方案,包括设置git配置以替换ssh协议,清除npm缓存,以及尝试更换registry。如果依然报错,建议多次尝试上述步骤。
4010

被折叠的 条评论
为什么被折叠?



