vue-element-admin 如何在本地跑通?

下载的 vue-element-admin 在VScode上跑出错。 在安装npm时报如下错误,
尝试了网上的添加环境变量仍未解决,求大佬帮忙!!!

npm ERR! code ENOGIT
npm ERR! Error while executing:
npm ERR! undefined ls-remote -h -t ssh://git@github.com/sohee-lee7/Squire.git
npm ERR!
npm ERR! undefined
npm ERR! No git binary found in $PATH
npm ERR!
npm ERR! Failed using git.
npm ERR! Please check if you have git installed and in your PATH.

npm ERR! A complete log of this run can be found in:
npm ERR! D:\soft\NodeJS\node_cache_logs\2019-02-13T07_44_02_375Z-debug.log

1.将项目中node_modules删掉(如果存在,不存在就不用管了)
2.将开发工具关掉,将git命令行关掉,然后卸载git重新安装git,卸载之后要检查一下环境变量中的path中是否存在git配置,如果存在,删掉
3.重新安装git
4.配置环境变量:将 XXXX\Git\cmd放入到path中;保存修改
5.重新启动项目,再进行项目的相关配置和install,搞定

建议不要用 cnpm 安装 会有各种诡异的bug 可以通过如下操作解决 npm 下载速度慢的问题

npm install --registry=https://registry.npm.taobao.org/

具体参考官方文档https://panjiachen.gitee.io/vue-element-admin-site/zh/guide/#安装