Born for code
方法一 通过config命令
npm config set registry https://registry.npm.taobao.org npm config get registry
方法2 通过安装cnpm直接使用阿里镜像(目前使用的方法)
npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm install [name]--通过使用cnpm安装你需要安装的库
npm cache clean -f