当我尝试使用以下命令安装react to pdf包时:npm install react to pdf
我收到以下错误:
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/eligrey/FileSaver.js.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
有人能告诉我问题出在哪里吗?
undefined ls-remote -h -t ssh://git@github.com/eligrey/FileSaver.js.git,
一般来说,这种错误";未定义"意味着您无法执行命令,因为您没有cli,在本例中是git命令。
如何解决?安装git。