npm 安装包报错 解决https证书过期 certificate has expired

方法一. 设置 ssl 为 false

npm config set strict-ssl false

方法二:修改 https 为 http

npm config set registry http://registry.npm.taobao.org/

posted @ 2024-02-12 15:12  应世玉  阅读(2428)  评论(0编辑  收藏  举报