npm install安装npm ERR! enoent undefined ls-remote -h -t ssh://[email protected]/sohee-lee7/Squire.git

1.问题

前端小白,第一次启用vue项目,是从github上下载的开源项目vue-elementui-admin
用npm install安装时出现 undefined ls-remote -h -t ssh://[email protected]/sohee-lee7/Squire.git
报错信息如图:在这里插入图片描述

2.解决:

1.配置git环境变量,将自己的git安装路径添加到系统环境变量path中(我的路径如:D:\xx\GIT\Git\cmd)
2.重新npm install
3.我用了npm install仍然报错,用cnpm install就可以了(配置了淘宝的镜像npm config set registry https://registry.npm.taobao.org)
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_44732379/article/details/116329426