打開終端git
輸入github
sudo ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
brew install yuicompressor
yui內含有保留關鍵字, 若是代碼中有這些關鍵字的話會報錯. 好比:package keyword 等ruby