npm 镜像地址设置

0、恢复默认镜像地址

  • 删除会恢复默认镜像
npm config delete registry

1、获取配置镜像地址

npm get registry

2、配置镜像地址

npm config set registry http://registry.npm.taobao.org/
原文地址:https://www.cnblogs.com/chentingjun/p/13572222.html