HEEELP! Spatie\browsershot not working. Always showing node_modules error. #722
Replies: 3 comments 2 replies
-
Try to install 16 or 17 version of peppeteer "npm install [email protected]" |
Beta Was this translation helpful? Give feedback.
-
Hello @jamessoncardozo, Have you managed to find a fix for this issue? I'm having the same trouble. Downgrading puppeteer did not work for me as suggested by the only response in this thread. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I'm facing a awful issue to make some screenshots with this library. I'm tired. It does't matter what I can make. It showing a big error. Take a look.
Symfony\Component\Process\Exception\ProcessFailedException: The command "node ^"C:^\Program Files^\nodejs^\node.exe^" ^"^{^^"url^^":^^"https:^/^/google.com^^",^^"action^^":^^"screenshot^^",^^"options^^":^{^^"type^^":^^"png^^",^^"path^^":^^"googlescreenshot.jpg^^",^^"args^^":^[^],^^"viewport^^":^{^^"width^^":3840,^^"height^^":2160^},^^"landscape^^":true,^^"waitUntil^^":^^"networkidle0^^"^}^}^"" failed.
Exit Code: 1(General error)
Working directory: C:\laravel\browsershot\public
Output:
Error Output:
'node' n�o � reconhecido como um comando interno
ou externo, um programa oper�vel ou um arquivo em lotes.
in file C:\laravel\browsershot\vendor\spatie\browsershot\src\Browsershot.php on line 914
I have already reviewed the settings in vendor......\browsershot.php
I'm thinking that i'ts a problem with node and npm brinary path. I have tried specify the binary module, but still don't work.
The file "C:\laravel\browsershot\vendor\spatie\browsershot\src\Browsershot
.php" have this property. Can this be the problem? I'm using Windows 11 and Laragon.
protected $includePath = '$PATH:/usr/local/bin:/opt/homebrew/bin';
Beta Was this translation helpful? Give feedback.
All reactions