getting the following error on the installation of jspdf in angular 5
pm 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://[email protected]/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

Salman BegRank #284 · 8.8K reputationPosted Feb 14, 2019, 4:22 AM EST
Puneet KankarRank #446 · 5.6K reputationPosted Feb 14, 2019, 5:27 AM EST
Muthu KumarRank #935 · 2.2K reputationPosted Feb 18, 2019, 10:23 PM EST
Here is an example for jspdf.
Install following,
Add this lines in angular.json file,
https://stackoverflow.com/questions/49445269/how-to-use-jspdf-and-jspdf-autotable-in-angular-5
I hope it's solve your problem.