淘宝 NPM 镜像站切换新域名
报错信息 :verbose stack FetchError: request to https://registry.npm.taobao.org/md-editor-v3 failed, reason: certificate has expired
为了更好的控制node版本的切换安装了nvm,在项目创建的时候npm才发现淘宝 NPM 镜像站切换新域名,老的已经停止了解析,今天创建项目才发现老的地址不能使用。
1、查看镜像源
npm config get registry
2、设置新的地址
npm config set registry https://registry.npmmirror.com