In the README, there is an explanation for the installation
With go 1.16 or higher:
go install github.com/cosmtrek/air@latest
but github.com/gohugoio/hugo which is one of air dependencies required go 1.18. I got the following error...
> go version
go version go1.17 darwin/amd64
> go install github.com/cosmtrek/air@latest
# github.com/gohugoio/hugo/common/text
../../../go/pkg/mod/github.com/gohugoio/hugo@v0.111.3/common/text/position.go:74:18: undefined: any
../../../go/pkg/mod/github.com/gohugoio/hugo@v0.111.3/common/text/transform.go:27:14: undefined: any
note: module requires Go 1.18
In the README, there is an explanation for the installation
but
github.com/gohugoio/hugo
which is one of air dependencies required go 1.18. I got the following error...