npm error errno CERT_HAS_EXPIRED
npm error request to https://registry.npm.taobao.org/util/download/util-0.10.4.tgz?cache=0\&sync_timestamp=1562337713422\&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Futil%2Fdownload%2Futil-0.10.4.tgz f ailed, reason: certificate has expired
解决方案:
1 清空缓存
npm cache clean --force
2 查看当前的npm镜像设置
npm config get registry
3 切换新源
npm config set registry https://registry.npmmirror.com
4 查看新源是否设置成功
npm config get registry
5 可以正常安装需要的工具了
npm insatll