安装 react-to-pdf 包时出错
error when installing react-to-pdf package
当我尝试使用此命令安装 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,
一般来说,这种错误“undefined ....”意味着您无法执行命令,因为您没有 cli,在本例中是 git 命令。
如何解决?安装 git.
当我尝试使用此命令安装 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,
一般来说,这种错误“undefined ....”意味着您无法执行命令,因为您没有 cli,在本例中是 git 命令。
如何解决?安装 git.