1、下载nodejs安装 http://nodejs.cn/download/ 2、npm install --global yarn 3、yarn --version 4、设置加速 yarn config set registry https://registry.npm.taobao.org