--go_out:protoc-gen-go:系统找不到Windows 10指定的文件

I am trying to use this command protoc greet\greetpb\greet.proto --go_out=plugins=grpc:. I got that message

"--go_out: protoc-gen-go: The system cannot find the file specified."

My protoc version is libprotoc 3.6.1 My go version go version go1.11.2 windows/386 Also into my package list is this github.com/golang/protobuf/protoc-gen-go/grpc

I am new using golang and I trying to learn grpc. Could someone helps me with that problem? I am using windows 10.

I could solve that problem editing the environment variable PATH. I add %GOPATH%/bin and the command works.

Make sure you have protobuf installed

brew install protobuf
go get -u github.com/golang/protobuf/protoc-gen-go

this should install protoc-gen-go into your $GOPATH/bin

set your PATH environment variable to the above folder

PATH = :$GOPATH/bin: