marcbachmann / node-html-pdf

This repo isn't maintained anymore as phantomjs got dreprecated a long time ago. Please migrate to headless chrome/puppeteer.
MIT License
3.56k stars 545 forks source link

Error: ENOENT: no such file or directory on toBuffer pdf.create #577

Closed RobertoGlez closed 4 years ago

RobertoGlez commented 4 years ago

I can't create pdf with the toBuffer function in my shared vps, I only have an account without root permissions and I need to create pdf but it won't let me create them without administrator permissions if I run the application as root if it leaves me, I need to be able to create them without the permissions root

ERROR:

[Error: ENOENT: no such file or directory, open '/temp/html-pdf-22189.pdf'] errno: -2, code: 'ENOENT', syscall: 'open', path: '/temp/html-pdf-22189.pdf'

i have centos 8

RobertoGlez commented 4 years ago

Need root permissions to excecute correctly