ruby-on-railsruby-on-rails-3sudowkhtmltopdfpdfkit

Rails: Why "sudo" command is not recognized?


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 ?


Solution

  • 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.