运行环境:

  1. 安装 node
  2. 设置 npm 源为国内原
    npm config set registry https://registry.npm.taobao.org
  3. 使用 yarn 管理 npm 依赖
    npm install yarn -g<br />yarn config set registry https://registry.npm.taobao.org/