Laravel Installation Issues on Ubuntu and Docker - configuration questions #913
longestdrive
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I'm trying to set up Laravel PDF/Browsershot
My development is using laravel sail (docker) and i've taken the following steps:
npm install puppeteerI tried to create a PDF from a view get this error:
Symfony\Component\Process\Exception\ProcessFailedException: The command "PATH=$PATH:/usr/local/bin:/opt/homebrew/bin NODE_PATH=npm root -gnode '/var/www/html/vendor/spatie/browsershot/src/../bin/browser.cjs' '{"url":"file:\/\/\/tmp\/461499557-0768364001736344713\/index.html","action":"pdf","options":{"path":"eclectic league-table-Wed 833 Jan 2025.pdf","args":[],"viewport":{"width":800,"height":600},"displayHeaderFooter":false,"printBackground":true}}'" failed.In the further explanation I have:
`Error Output:
Error: Could not find Chrome (ver. 131.0.6778.204). This can occur if either
npx puppeteer browsers install chrome) orFor (2), check out our guide on configuring puppeteer at https://pptr.dev/guides/configuration.`
I then ran
npx puppeteer browsers install chromeBut the same error occurs
I've checked the server and do not have a subfolder for puppeteer in the cache folder
How do I correctly configure for Laravel Sail?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions