确实是因为自己的不熟悉,接触Git的比较少吧,首先是使用阿里云的一个CODE管理,没有接触过,给我加入到项目组之后,需要我自己吧项目跑起来。

执行npm install 报错,开始嘛根据他的提示,去配置了一下,公钥私钥,配置完之后,就遇到

npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno -4058
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t ssh://git@github.com/sohee-lee7/Squire.git
npm ERR! enoent 
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:


解决办法

看到网上的教程,在bash执行下边的指令

git config --global http.sslverify "false"
git config --global http.sslVerify false
git config --global url."https://".insteadOf git://

之后呢配置了一个访问github的一个host文件,访问github更快了
我是使用火绒修改host文件,添加下边的东西,前边是ip github的ip 可以百度了解一下修改host加速github访问速度(DNS)。

140.82.113.3	github.com
192.30.255.112	github.com
192.30.253.113		github.com
151.101.185.194		github.global.ssl.fastly.net


后边使用 install指令 安装包/然后运行, 一路就不报错了