// 查看当前镜像源地址 默认镜像源地址: https://registry.npmjs.org/
npm config get registry
/* 如果此前没有做过更改的话 此处应该输出:https://registry.npmjs.org/ */
// 切换默认镜像源为淘宝镜像 淘宝镜像: https://registry.npm.taobao.org/ (旧) https://registry.npmmirror.com/ (新)
npm config set registry='https://registry.npmmirror.com/'
// 检查是镜像源否切换成功
npm config get registry
/* 如果修改成功 此处应该输出:https://registry.npm.taobao.org/*/
标签:npm,源为,registry,https,org,镜像
From: https://www.cnblogs.com/yangSad/p/16911056.html