npm config set registry https://registry.npmmirror.com/
原淘宝镜像源
https://registry.npm.taobao.org
,现已更换为https://registry.npmmirror.com
。相关链接:淘宝 NPM 镜像站切换新域名啦
npm 配置文件位于 ~/.npmrc
:
registry=https://registry.npmmirror.com/
标签:npm,换源,registry,https,镜像,npmmirror,com From: https://www.cnblogs.com/Undefined443/p/17975711你也可以为只单个项目指定镜像源,在项目根目录下创建文件
.npmrc
并填写配置