zeon-studio / hugoplate

Hugoplate is a free starter template built with Hugo and TailwindCSS that will save you hours of work.
https://zeon.studio/preview?project=hugoplate
MIT License
865 stars 240 forks source link

failed to download modules: binary with name "go" not found #59

Closed Sakh1l closed 11 months ago

Sakh1l commented 11 months ago

when i try to run the command npm run update-modules am getting below error in linux.

hugoplate@1.9.3 update-modules node ./scripts/clearModules.js && hugo mod clean --all && hugo mod get -u ./... && hugo mod tidy

File does not exist. Error: failed to load modules: failed to download modules: binary with name "go" not found

I understand that it has an issue with go modules file go.mod. The same error comes up when we run "hugo mod get -u"

arthurzinck commented 11 months ago

Hi @Sakh1l, have you golang installed ?

Sakh1l commented 11 months ago

Hi, yes. I have all three node, Hugo extended and go as said/above versions installed

On Fri, 24 Nov 2023, 23:06 z3k, @.***> wrote:

Hi @Sakh1l https://github.com/Sakh1l, have you golang installed ?

— Reply to this email directly, view it on GitHub https://github.com/zeon-studio/hugoplate/issues/59#issuecomment-1825949430, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOGK3FL2SGQJFSPXXCEDDUDYGDLIJAVCNFSM6AAAAAA7ZL266GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRVHE2DSNBTGA . You are receiving this because you were mentioned.Message ID: @.***>

tfsomrat commented 11 months ago

Hey @Sakh1l, you may need to export go path. this thread could help you. or you can more specific with your OS and search google how to export go path on windows/mac/linux.

If everything goes well, then you can see the go version on the terminal by typing go version. thanks

Sakh1l commented 11 months ago

@tfsomrat Hi, no. I tried that as well. Go path is exported and I have it in my shell environment.

tfsomrat commented 11 months ago

please run go version, hugo version and node -v in the terminal, and give me the output here.

Sakh1l commented 11 months ago

Here is the output. Thanks @tfsomrat

go version go version go1.20.5 linux/amd64

hugo version hugo v0.118.2-da7983ac4b94d97d776d7c2405040de97e95c03d+extended linux/amd64 BuildDate=2023-08-31T11:23:51Z VendorInfo=gohugoio

node -v v18.17.1

Screenshot from 2023-11-25 18-42-47

Sakh1l commented 11 months ago

Thanks @tfsomrat . I have installed the golang from apt repo and it worked fine. Earlier, complied it from the source code. Now, it works. Thanks for your time and effort on looking in it.