when i try to install react-to-pdf package using this command : npm install react-to-pdf
i get this errors :
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
could someone tell me what the problem is ?
undefined ls-remote -h -t ssh://git@github.com/eligrey/FileSaver.js.git,
In general this kind of errors "undefined .... " means you are not able to execute a command because you do not have the cli, in this case a git command.
How to solve? Install git.