Issue with browsershot on windows #91
Unanswered
Tetrafarmakos
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.
-
I am using Laragon on windows and the package doesn't seem to work. Browsershot can't recognize the node command. I tried setting binary paths but it didn't work either.
Browsershot::html('Foo')
->setNodeBinary('/usr/local/bin/node')
->setNpmBinary('/usr/local/bin/npm');
The error bellow:
The command "node "C:\laragon\www\one\vendor\spatie\browsershot\src/../bin/browser.cjs" "{""url"":""file://C:\Windows\Temp\282921345-0631714001708689429\index.html"",""action"":""pdf"",""options"":{""args"":[],""viewport"":{""width"":800,""height"":600},""displayHeaderFooter"":false,""printBackground"":true}}"" failed. Exit Code: 1(General error) Working directory: C:\laragon\www\one\public Output: ================ Error Output: ================ 'node' is not recognized as an internal or external command, operable program or batch file.
Beta Was this translation helpful? Give feedback.
All reactions