AbdulBazith's avatar

Error in installing barryvdh/laravel-snappy in laravel

Guys i installed barryvdh/laravel-snappy, i got this error after executing


The exit status code '1' says something went wrong: stderr: "The system cannot find the path specified. " stdout: "" command: "vendor/bin/wkhtmltopdf-amd64" --lowquality "C:\Users\Azasoft\AppData\Local\Temp\knp_snappy5b4dc15a0b62d5.02159522.html" "C:\Users\Azasoft\AppData\Local\Temp\knp_snappy5b4dc15a0bdfd3.38860170.pdf".

i reffered it and i found the solution that


cp vendor/h4cc/wkhtmltoimage-amd64/bin/wkhtmltoimage-amd64 /usr/local/bin/

cp vendor/h4cc/wkhtmltopdf-amd64/bin/wkhtmltopdf-amd64 /usr/local/bin/

to do this.. but if i run this command in my command prompt it shows error that


cp: cannot create regular file '/usr/local/bin/': No such file or directory


is there any folder in tha name usr

kindly someone help plz

0 likes
5 replies
AbdulBazith's avatar

@Clas1994 No one replied. facing the problem still.. do u tried any other method for report generation?

1 like
5uper7onino's avatar

In Windows, you need to install a wkhtmltopdf windows version, then change the binary path in your /config/snappy.php to your wkhtmltopdf executable file as i show you below

from 'binary' => '/usr/local/bin/wkhtmltopdf-amd64', to 'binary' => '"C:\Program Files\wkhtmltopdf\bin\wkhtmltopdf.exe"',

// including both quotes, double and single and the backslashes

Please or to participate in this conversation.