1. 不能用太高版本的 golang 编译,1.12 版本左右的刚好。
2.
go get -tags 'release' -d -v ngrok/...
src/github.com/mattn/go-runewidth/runewidth.go:7:2: found packages uniseg (doc.go) and main (gen_breaktest.go) in /root/ngrok/src/github.com/rivo/uniseg
make: *** [Makefile:8: deps] Error 1
如果出现以上错误,则需要降低 go-runewidth 或 uniseg 的版本。ngrok 已经不更新了,而它的依赖包还在更新,就会导致错误。