安装
sudo cnpm install -g yarn
查看版本
yarn -v
查询当前镜像
yarn config get registry
设置为淘宝镜像
yarn config set registry https://registry.npm.taobao.org/
设置为官方镜像
yarn config set registry https://registry.yarnpkg.com
安装
sudo cnpm install -g yarn
查看版本
yarn -v
查询当前镜像
yarn config get registry
设置为淘宝镜像
yarn config set registry https://registry.npm.taobao.org/
设置为官方镜像
yarn config set registry https://registry.yarnpkg.com