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
直接将git的cmd命令添加到系统环境变量的path变量里即可,D:\Program Files\Git\cmd(自己的目录)
如果环境变量已存在还报这个错误的话,还有一种可能情况,就是重启一下电脑就好了