The command "node ^"D:^\Xampp^\htdocs^\Project^\vendor^\spatie^\browsershot^\src/../bin/browser.js^" ^"^{^\^"url^\^":^\^"https:^\/^\/example.com^\^",^\^"action^\^":^\^"screenshot^\^",^\^"options^\^":^{^\^"type^\^":^\^"png^\^",^\^"args^\^":^[^],^\^"viewport^\^":^{^\^"width^\^":800,^\^"height^\^":600^}^}^}^"" failed. Exit Code: 1(General error) Working directory: D:\Xampp\htdocs\Project\public Output: ================ Error Output: ================ 'node' is not recognized as an internal or external command, operable program or batch file. #606
Replies: 3 comments 7 replies
-
I also had the same problem, @jerry4rahul did you solve it? |
Beta Was this translation helpful? Give feedback.
-
Same Issue but solved by adding and installing |
Beta Was this translation helpful? Give feedback.
-
The command escaping is broken, see https://github.com/spatie/browsershot/blob/main/src/Browsershot.php#L897 The whole command is escaped including the node binary path which shouldn't be. I'll try to take some spare time to fix and test this, if no-one did it before me. |
Beta Was this translation helpful? Give feedback.
-
The command "node ^"D:^\Xampp^\htdocs^\Project^\vendor^\spatie^\browsershot^\src/../bin/browser.js^" ^"^{^\^"url^\^":^\^"https:^\/^\/example.com^\^",^\^"action^\^":^\^"screenshot^\^",^\^"options^\^":^{^\^"type^\^":^\^"png^\^",^\^"args^\^":^[^],^\^"viewport^\^":^{^\^"width^\^":800,^\^"height^\^":600^}^}^}^"" failed. Exit Code: 1(General error) Working directory: D:\Xampp\htdocs\Project\public Output: ================ Error Output: ================ 'node' is not recognized as an internal or external command, operable program or batch file.
The error looks like node is not installed but by use
node -v
returns v17.6.0Can anyone help me on this?
Beta Was this translation helpful? Give feedback.
All reactions