1、下载 node.js,打开 cmd 控制台,用 npm 安装:
npm install -g yarn
2、查看版本:
yarn --version
3、yarn 淘宝源安装,共两步:
yarn config set registry https://registry.npm.taobao.org -g
yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g
npm install -g yarn
yarn --version
yarn config set registry https://registry.npm.taobao.org -g
yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g