Can't find Go Binary to init modules

Having a bit of trouble with initiating my site as a module. If I run hugo mod init github.com/{username}/{repo} it comes up an error saying Error: failed to init modules: binary with name “go” not found. I’ve installed Go on my machine according to the Hugo docs. Just wondering if there’s another step that I’m missing?

Here’s a link to the repo Repo

This is my first time using modules, sorry about the elementary question

What is the output from hugo version?
What is the output from go version?

Ok so it was saying go not found when i put in go version. Restarted my terminal and everything is working great. Sorry about the bother. Thanks!

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