npm install -g yarn
查看当前源
npm config get registry yarn config get registry
设置为淘宝源
npm config set registry https://registry.npm.taobao.org yarn config set registry https://registry.npmmirror.com
yarn config set "strict-ssl" false -g