Skip to content

npm设置查看镜像

查询下载源

shell
npm get registry

设置为国内镜像

shell
npm config set registry https://registry.npmmirror.com

设置为官方镜像

shell
npm config set registry https://registry.npmjs.org/