//切换到公司仓库源
npm config set registry http://af.com.cn/artifactory/api/npm/npm-down/
1.切换镜像源,由官方切换为淘宝的两条命令,任选一条
npm config set registry=https://registry.npm.taobao.org/
npm i -g cnpm --registry=https://registry.npm.taobao.org
2.查看当前镜像 下包源
npm config get registry
3.通过nrm 工具 镜像源管理工具
通过 npm 包管理工具,将 nrm 安装为全局可用工具:npm i nrm -g
查看所有可用镜像源: nrm ls
切换镜像源:nrm use taobao