installation
sudo cnpm install -g yarn
View version
yarn -v
Query the current image
yarn config get registry
Set as Taobao mirror
yarn config set registry https://registry.npm.taobao.org/
Set as official mirror
yarn config set registry https://registry.yarnpkg.com