npm install时报错:npm ERR! command failed npm ERR! command git ls-remote ssh://git@github.com/nhn/raphael.git
解决方法:
桌面右键,git bash here
输入以下
ssh-keygen -t rsa -C “你的邮箱名称”
overwrite 输入y
输入密码的时候直接回车
重复密码输入还是直接回车,然后把github上以前的sshkeys删除,c盘->用户->你的用户名->.ssh->id_rsa.pub里边的字符添加到 github右上角头像->settings->ssh & GPG ->Add sshKeys
第二个大框里输入确认即可
如果还是无法解决可以尝试切换网络
vue项目npm install报错解决方式
最新推荐文章于 2024-06-26 17:28:09 发布