NPM browser shot error with laravel pdf package #185
Unanswered
ShaungBhone
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Have you installed Puppeteer? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I got an error with spatie laravel pdf. I already installed all requirement from docs. I'm using
The command "PATH=$PATH:/usr/local/bin:/opt/homebrew/bin NODE_PATH=`npm root -g` node '/Users/shaungbhone/Herd/weshop/vendor/spatie/browsershot/src/../bin/browser.cjs' '{"url":"file:\/\/\/var\/tmp\/89399023-0225763001727011898\/index.html","action":"pdf","options":{"path":"inovices.pdf","args":[],"viewport":{"width":800,"height":600},"displayHeaderFooter":false,"printBackground":true}}'" failed. Exit Code: 127(Command not found) Working directory: /Users/shaungbhone/Herd/weshop/public Output: ================ Error Output: ================ sh: npm: command not found sh: node: command not found
Beta Was this translation helpful? Give feedback.
All reactions