使用npm安装包时出现的问题

今天,在安装markdown包时出现了下面的问题,说淘宝镜像证书已经过期, verbose stack FetchError: request to https://registry.npm.taobao.org/md-editor-v3 failed, reason: certificate has expired (npm包管理器在尝试从淘宝的npm镜像仓库(registry.npm.taobao.org)获取md-editor-v3包时,由于证书已过期而失败。)
然后解决方案的话就是切换镜像源

# 切换镜像源
npm config set registry https://registry.npmmirror.com/
# 查看镜像是否切换
npm config get registry 
# 安装markdown包
npm install md-editor-v3

在这里插入图片描述

更多推荐