In AWS ubuntu 16.04, I have this error:
{\"code\":\"ENOENT\",\"errno\":\"ENOENT\",\"syscall\":\"spawn /usr/local/bin/phantomjs\",\"path\":\"/usr/local/bin/phantomjs\"}"
when using function pdf.create()
of html-pdf 2.1.0
I use node v0.12.7
What has already been done:
- install
"phantomjs-prebuilt": "2.1.14"
- Generate symlink
sudo ln -s /home/ubuntu/shopper-api/node_modules/html-pdf/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs /usr/local/bin/phantomjs
Everything this was no work in aws but in my pc local if work :(