方法 1:按住 control + c 取消本次更新操做composer
➜ ~ brew install composer Updating Homebrew... ^C
按住 control + c 以後命令行會顯示 ^C,就表明已經取消了 Updating Homebrew 操做命令行
大概不到 1 秒鐘以後就會去執行咱們真正須要的安裝操做了code
➜ ~ brew install composer Updating Homebrew... ^C==> Satisfying dependencies ==> Downloading https://getcomposer.org/download/1.7.2/composer.phar ...