运行命令: sudo chown -R $(whoami):admin /usr/local/Cellar 即可解决。 不过这仅仅解决了安装的问题,如果需要更多的操作权限,可以补充运行命令: sudo chown -R $(whoami):admin /usr/local