错误如下: error: could not lock config file /usr/local/Homebrew/.git/config: Permission denied fatal: could not set 'core.repositoryformatversion' to '0' Failed during: git init -q 报错原因:权限不足 想到用sudo, 貌似不可以,所以,可以给文件夹增加权限,注意这里usr不要写成user sudo chgrp -R admi…
解决mac安装homebrew后报错-bash: brew: command not found 参照官网上很简单的一句安装命令, /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 安装完毕后,发现使用brew命令,却总是提示:-bash: brew: command not found /usr/local/bin不在PATH中…