I have installed Browsershot to Laravel
the same way like here (https://github.com/spatie/browsershot ) and when I try to do something it gives me this error.
The command "node "C:\xp\htdocs\staticit\vendor\spatie\browsershot\src/../bin/browser.js" "{\"url\":\"https://google.com\",\"action\":\"screenshot\",\"options\":{\"type\":\"png\",\"path\":\"C:\xp\htdocs\staticit\app\Http\Controllers/temp/testScreenshot.png\",\"args\":[],\"viewport\":{\"width\":800,\"height\":600}}}"" failed. Exit Code: 1(General error) Working directory: C:\xp\htdocs\staticit\public Output: ================ Error Output: ================ 'node' is not recognized as an internal or external command, operable program or batch file.
I have installed node modules in my Laravel project root folder and when I write node -v in my cmd it is recognized.
**Note: I'm using Win7 , Laravel 5.7 and node ,php latest version.