Hugo server is not starting locally

I am trying to run the academic theme locally on my system.
When I try running hugo server locally, I am getting the following error:
Error: we found a go.mod file in your project, but you need to install Go to use it. See module “” not found; either add it as a Hugo Module or store it in “/home/website/academic-website/themes”.: module does not exist

It seems like Hugo is not recognizing Go, but I have installed it as per the given instructions, and it is running fine.

Can someone please let me know what the problem can be.

How did you install Hugo?

I installed the extended version using snap as was given here:

I suspect that installing as a snap is causing the problem. Install using another method:

Yes. I now installed it using the tarball, and it is now working. Thank you very much :smile:

You are welcome.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.