1.cnpm安装(淘宝镜像)

  1. npm install -g cnpm --registry=https://registry.npm.taobao.org

2.npm安装

  1. npm config set registry https://registry.npm.taobao.org --global
  2. npm config set disturl https://npm.taobao.org/dist --global

3.yarn

  1. npm i yarn -g
  2. yarn config set registry https://registry.npm.taobao.org