我需要将 html 转换为 pdf,我使用的是 jspdf 1.5.2。它显示错误无法读取未定义的属性“charAt”(与 html2canvas 一起使用)。
当我尝试安装 jspdf 1.5.3 时,我得到了这个:
npm 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://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
我已经阅读了其他线程,但没有一个有帮助。