latest version cobra-cli: command not found
zhongsdjn opened this issue · 2 comments
zhongsdjn commented
mkdir myapp
cd myapp
go mod init github.com/spf13/myapp
go get -u github.com/spf13/cobra@latest
go install github.com/spf13/cobra-cli@latest
When I excute cobra-cli init
, -bash: cobra-cli: command not found
windows system: 'cobra-cli' is not recognized as an internal or external command,
operable program or batch file.
why? A month ago is normal!
marckhouzam commented
Normally go install
will put the binary under $GOPATH/bin
.
You have to make sure $GOPATH/bin
is found on your PATH variable.
zhongsdjn commented
Normally
go install
will put the binary under$GOPATH/bin
.You have to make sure
$GOPATH/bin
is found on your PATH variable.
ok! I see!