I get this error when running Hugo’s Snap in Debian/Qubes:
user@HUGO:~$ snap run hugo
Error: Unable to locate Config file. Perhaps you need to create a new site.
Run `hugo help new` for details.
user@HUGO:~$ ^C
I get this error when running Hugo’s Snap in Debian/Qubes:
user@HUGO:~$ snap run hugo
Error: Unable to locate Config file. Perhaps you need to create a new site.
Run `hugo help new` for details.
user@HUGO:~$ ^C
The hugo
binary is used to create a new site and config, or operate in a site with a config. So unless you are building a Hugo project in your home directory, you should create a new site.
The error message also suggests running hugo help new
, which will give you additional steps.