Rails: Why "sudo" command is not recognized?

Misha Moroshko picture Misha Moroshko · Mar 3, 2011 · Viewed 108.1k times · Source

In my application directory (on Windows) I run:

sudo pdfkit --install-wkhtmltopdf

as explained here, but I got this error:

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

What could be the problem ?

Answer

Douglas F Shearer picture Douglas F Shearer · Mar 3, 2011

Sudo is a Unix specific command designed to allow a user to carry out administrative tasks with the appropriate permissions.

Windows does not have (need?) this.

Run the command with the sudo removed from the start.