- 查看当前源
npm config get registry
- 切换国内源
腾讯云
npm config set registry https://mirrors.cloud.tencent.com/npm
淘宝
npm config set registry http://registry.npmmirror.com
阿里云
npm config set registry https://npm.aliyun.com
华为云
npm config set registry https://mirrors.huaweicloud.com/repository/npm
网易
npm config set registry https://mirrors.163.com/npm
中国科学技术大学开源镜像站
npm config set registry http://mirrors.ustc.edu.cn
清华大学开源镜像站
npm config set registry https://mirrors.tuna.tsinghua.edu.cn
标签:NPM,npm,set,com,国内,registry,https,config From: https://www.cnblogs.com/zhuo512/p/18521243官方源
npm config set registry https://registry.npmjs.org