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

SPWAN enonent error #527

Open yashm123 opened 5 years ago

yashm123 commented 5 years ago

Pdf is getting generated when i run the node code locally. But when deploy my application to docker containing node-alpine image, It gives me child process error.

Has anyone solved it

jerryOkafor commented 4 years ago

I am currently experiencing the same issue. Is there any solution out there. I would appreciate a clue on how to fix this.

abmd commented 4 years ago

Some workarounds may be found here: https://github.com/mohuk/html-pdf-docker-alpine/blob/master/Dockerfile

The main reason of falling on alpine-linux is a correct installation of phantomjs-prebuilt.

You may install phantomjs from link above, and then npm install html-pdf phantomjs-prebuilt

But then I fall into #8

zander-br commented 3 years ago

https://github.com/marcbachmann/node-html-pdf/issues/612#issuecomment-854249720