sudo brew uninstall node
brew update
brew upgrade
brew cleanup
brew install node
sudo chown -R 用户组(一般当前用户名) /usr/local
brew link --overwrite node