msslgomez
1 month ago
171
2
Laravel

Installing barryvdh/laravel-snappy 'cp' is not recognized as an internal or external command

Posted 1 month ago by msslgomez

I'm trying to use this dependency (https://github.com/barryvdh/laravel-snappy) but I'm having trouble when it comes to this instruction

Move the binaries to a path that is not in a synced folder, for example:

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

I can't figure out how to do this, if I copy those into the laravel cmd I get this error

'cp' is not recognized as an internal or external command, operable program or batch file.

I tried replacing it with the windows copy and get this error

The syntax of the command is incorrect.

I'm lost as what to do right now with this, if I try and use it without doing this step I get another error and it won't generate the pdf I need.

The exit status code '1' says something went wrong: stderr: "The system cannot find the path specified. " stdout: "" command: /usr/local/bin/wkhtmltopdf --lowquality

What can I do to be able to complete this step?

Please sign in or create an account to participate in this conversation.