Hello everyone,
I’m facing the following error at the moment:
Error: command error: Unable to locate config file or config directory. Perhaps you need to create a new site. Run hugo help new
for details.
I’m executing my npm script from the root directory of my project, which is:
…
“hugo-dev”: “hugo server --watch --buildDrafts --cleanDestinationDir --disableFastRender --templateMetricsHints”,
…
I have just moved (again!) to WSL2 Ubuntu 22.04 in order to make use of the ./deploy script described in the docs.
When entering hugo server -D --config hugo.toml into my bash it works - but I don’t want that (it’s utterly annoying typing to start the server over and over again).
I have also read all the posts of this forum regarding this topic - all other problems are related differently (wrong key in config, GitLab, etc.)
Another user of this forum just cloned my site this afternoon (I did ask another question today) and got it up and running without any problems.
Why is my hugo.config file not being found ?