1> cnpm(不推荐)npm
npm install -g cnpm --registry=https://registry.npm.taobao.org
2> 推荐第二种bash
npm config set registry https://registry.npm.taobao.org