flutter get gzip (stdin) trailing garbage ignored

报错:

1
flutter  get   gzip: (stdin): trailing garbage ignored

解决:

1
2
3
4
5
6
7
8
Building flutter tool...
gzip: (stdin): trailing garbage ignored
gzip: (stdin): trailing garbage ignored
tar: Child returned status 1
tar: Error is not recoverable: exiting now
gzip: (stdin): trailing garbage ignored
gzip: (stdin): trailing garbage ignored
Write failed (OS Error: Broken pipe, errno = 32), port = 0

解决办法卸载brew 安装的 gnu-tar, 至少我这样是解决了。原贴也有评论说没关系的、
https://github.com/flutter/flutter/issues/11074

1
brew uninstall gnu-tar