之前使用ubuntu,apt-get 实在好用,现在用mac 什么工具比较好呢?当然是brew啦!
网站:https://brew.sh
命令行使用
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
即可进行安装,如果安装过程中出现ERROR:
/usr/local/Cellar is not writable. You should change the
ownership and permissions of /usr/local/Cellar back to your
user account:
sudo chown -R $(whoami) /usr/local/Cellar
Failed during: /usr/local/bin/brew update --force
照着提示,修改权限即可:
sudo chown -R root /usr/local/Cellar
如果中间还出现任何错误,按照提示修改即可!棒!