using spatie/laravel-pdf #170
Unanswered
theEngMansour
asked this question in
Q&A
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.
-
When working with the Spatie/Laravel-pdf library, it works perfectly fine locally, but when I deploy the website on a VPS hosting, I installed it using c
![Uploading التقاط.PNG…]()
omposer require spatie/laravel-pdf
andnpm install puppeteer
, but I encounter an error, The error message you're seeing indicates that the node and npm commands are not found on your hosting environment, which is causing the PDF generation to fail. When you're using spatie/laravel-pdf, it relies on Node.js for running its dependencies, such as browsershot, which in turn uses the headless version of Chrome to generate PDFBeta Was this translation helpful? Give feedback.
All reactions