coletiv / puppeteer-pdf

PDF generation wrapper for Elixir using Puppeteer
MIT License
97 stars 18 forks source link

not globally installing `puppeteer-pdf` #32

Open JTaylorGonzales opened 4 years ago

JTaylorGonzales commented 4 years ago

i just have some questions, so im trying to use this library on my project. im only installing the puppeteer-pdf on my project folder and not globally.

steps that i did:

then i tried installing the puppeteer -pdf globally

so is it not possible not to globally install puppeteer-pdf?

speeddragon commented 4 years ago

It should work with the local install. Can you try to run the same command that this library runs with the local binary of puppeteer-pdf ? If I have some free time, I will try to run with a local install.

JTaylorGonzales commented 4 years ago

i tried manually running in my IEx shell:

CommandHelper.cmd("local/path", ["options-here"]) -> returns {"", 13} but still no file created

speeddragon commented 4 years ago

I think 13 is from PermissionError: [Errno 13] Permission denied.

Can you check if you have permission +x (execution) to that file?

juddey commented 3 years ago

Got this working today by pointing directly at the local install js file

node_modules/puppeteer-pdf/puppeteer-pdf.js