Mac install yarn 2020-10-18

brew install yarn 

if the save Failed to connect to port 443 raw.githubusercontent.com: Connection refused, because no Homebrew

normally installs Homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

but due to some of the you understand factors, lead to a lot of raw.githubusercontent.com DNS has been polluted.

solution

is solved directly using this open source script with one click:

https://gitee.com/cunkai/HomebrewCN

Homebrew domestic automatic installation script

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

is then loaded with yarn

brew install yarn

Read More: