For this error in windows use go install github.com/cosmtrek/air@latest it will solve your problem 100%