0
点赞
收藏
分享

微信扫一扫

npm install时出现npm ERR code 128

今天你读书了吗 2022-03-15 阅读 216
gitnpmgithub

问题描述: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://

转载自:https://www.cnblogs.com/sanyekui/p/14779824.html

举报

相关推荐

0 条评论