npm ERR! 报错enoent Error while executing: npm ERR! enoent undefined lsremote h t ssh://git@github.com/soheelee7/Squire.git npm ERR! enoent

错误信息

npm ERR! path git
npm ERR! code ENOENT
npm ERR! errno ENOENT
npm ERR! syscall spawn git
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.

解决方法

git安装地址:https://npm.taobao.org/mirrors/git-for-windows/v2.24.0.windows.2/

使用git安装依赖

原文地址:https://www.cnblogs.com/zhanqing/p/15138553.html