配置镜像源 查看当前的 npm 配置 npm config get registry 绑定镜像源 如:国内镜像源:https://registry.npmmirror.com npm config set registry https://registry.npmmirror.com 删除配置的镜像源 npm config rm registry