Hugo not regognize

Hi i also have same issue when i creating new website in hugo but i cant understand what is
"“It always works to run a binary if you are in the same directory as the binary because your operating system searches for an executable with the same name in your current location first.” support answer to another person

here is my issue
C:\Hugo\Sites>hugo new site test
’hugo’ is not recognized as an internal or external command,
operable program or batch file.

Hello sir thanks for the fastest reply can you please help me how i create new website in hugo without any error because i am totally new in cmd so i don’t know more clearly about your suggestion for cmd

That error on Windows means one of the following:

  1. You haven’t installed Hugo
  2. You have installed Hugo but the executable is not in your PATH

I’m assuming that you’ve installed Hugo, so the error is that the program is not in your PATH. The YouTube video explains how to update your PATH so that you can run Hugo.

Alternatively, let’s assume that you installed Hugo in C:\Hugo\bin\hugo.exe. If it’s not there, go ahead and create the directory and move the hugo.exe file there. Then all you have to do to run the command is specify the prefix every time you use it:

C:\Hugo\Sites> C:\Hugo\bin\hugo new site test

In the long run, you’ll be much happier with having Hugo in your PATH, but this work around works.