在使用brew安装软件和更新版本时出现如下问题:
MyMac:~ himotech$ brew install docker
Error: Unknown command: install
MyMac:~ himotech$ brew update
Error: /usr/local must be writable!
解决方案如下:
直接卸载brew,然后重新安装
终端输入自动卸载:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
终端输入自动安装:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
再使用brew install docker
安装docker就没有问题啦