cant install jsPDF in my angular 7

I have already installed Git and Path configured but I still have this error

npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno ENOENT
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t ssh://
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

Try opening a new shell and confirm git is available:

git --version

thanks I solved the problem when I restarted the machine, I think the environment variables didn’t update

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.