问题描述:npm ERR! code 128
项目下载依赖时执行 npm install 报错 npm ERR! code 128,如下图:
原因分析:
因为这里执行的 git ls-remote ssh://git@github. com/nhn/raphael. git 没有可用的主机验证秘钥,导致拉取失败。
解决方案:
执行以下命令,将其转换为HTTP请求
git config --global url."https://".insteadOf git://
微信扫一扫
项目下载依赖时执行 npm install 报错 npm ERR! code 128,如下图:
因为这里执行的 git ls-remote ssh://git@github. com/nhn/raphael. git 没有可用的主机验证秘钥,导致拉取失败。
执行以下命令,将其转换为HTTP请求
git config --global url."https://".insteadOf git://
相关推荐