request to https://registry.npm.taobao.org/cnpm failed, reason: certificate has expired
方法1
// 1. 清空緩存
npm cache clean --force
// 2. 關閉SSL驗證
npm config set strict-ssl false
方法2
// 1. 清空緩存
npm cache clean --force
// 2. 切換新源
npm config set registry https://registry.npmmirror.com
// 3. 查看源是否設置成功
npm config get registry