vue-element-admin 安装依赖npm install 报错
在GitHub上clone了一个vue-element-admin项目的代码,在webstorm上npm install 就报错了
首次报错信息
it <https://github.com/lukeed/kleur/releases/tag/v3.0.0\> for migration path(s).
npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()
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,并在webstorm中配置git
配置后还是同样的报错,试了各种方法都不行,重启电脑
后发现报错不一样了
新的报错信息
npm ERR! code 128
npm ERR! Command failed: git clone --mirror -