brew install 报错 Error: The following directories are not writable by your user

今天尝试安装dart 报错权限不够

image.png

尝试,解决

sudo chown -R $(whoami):admin /usr/local

参考 https://apple.stackexchange.com/questions/208944/upgrading-brew-in-el-capitan

你可能感兴趣的:(brew install 报错 Error: The following directories are not writable by your user)