An old question, but I thought it might help someone along the way. I am on Windows (yes, I know what it was for Linux ) and running Hugo outside the created directory where hugo.exe lives.
Note that hugo.exe does not need to reside in c:\hugo\bin according to the example below
- Download Hugo (64 or 32-bit) from https://github.com/spf13/hugo/releases
- Create a folder in
C:\ called Hugo . - Create another folder inside
C:\Hugo called bin - Unzip the file downloaded from the HUGO URL into the
bin folder - Open
cmd.exe to add the HUGO path to the Windows PATH environment variables. Type set PATH=%PATH%;C:\Hugo\bin
To make sure hugo is installed globally, enter where hugo in any directory on the command line and it will tell you where it is (in our case, c:\hugo\bin\hugo.exe )
From there, you can launch your Hugo sites from any repository on your HD.
source share