前往github项目地址
https://github.com/yarnpkg/yarn
打开Releases页面
https://github.com/yarnpkg/yarn/releases
下载最新版本安装包
https://github.com/yarnpkg/yarn/releases/download/v1.22.4/yarn-1.22.4.msi
下载完成后安装包如下
yarn-1.22.4.msi
执行安装包,需要设置安装目录
C:\software\Yarn
yarn config set registry http://registry.npm.taobao.org/ -g
yarn config get registry
原文:https://www.cnblogs.com/fengzhentian/p/13508969.html