npm的配置

1-1 cnpm 安装

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

1-2 npm安装

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

1-3 yarn

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