首页 前端知识 pnpm install 报错 https://registry.npm.taobao.org/pnpm failed: certificate has expired 证书过期解决方案

pnpm install 报错 https://registry.npm.taobao.org/pnpm failed: certificate has expired 证书过期解决方案

2024-04-29 11:04:10 前端知识 前端哥 556 498 我要收藏

问题描述

pnpm install 安装依赖报错如下:

ERR_PNPM_META_FETCH_FAIL  GET https://registry.npm.taobao.org/pnpm: request to https://registry.npm.taobao.org/pnpm failed, reason: certificate has expired
                                                                                                                                                        
   ╭──────────────────────────────────────────────────────────────────╮
   │                                                                  │
   │                Update available! 8.5.0 → 8.14.1.                 │
   │   Changelog: https://github.com/pnpm/pnpm/releases/tag/v8.14.1   │
   │                Run "pnpm add -g pnpm" to update.                 │
   │                                                                  │
   │      Follow @pnpmjs for updates: https://twitter.com/pnpmjs      │
   │                                                                  │
   ╰──────────────────────────────────────────────────────────────────╯

 WARN  GET https://registry.npm.taobao.org/@commitlint/lint error (CERT_HAS_EXPIRED). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npm.taobao.org/debug error (CERT_HAS_EXPIRED). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npm.taobao.org/execa error (CERT_HAS_EXPIRED). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npm.taobao.org/@commitlint/types error (CERT_HAS_EXPIRED). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npm.taobao.org/yargs error (CERT_HAS_EXPIRED). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npm.taobao.org/@iconify/types error (CERT_HAS_EXPIRED). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npm.taobao.org/@commitlint/read error (CERT_HAS_EXPIRED). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npm.taobao.org/@eslint-community/regexpp error (CERT_HAS_EXPIRED). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npm.taobao.org/@commitlint/load error (CERT_HAS_EXPIRED). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npm.taobao.org/lodash.isfunction error (CERT_HAS_EXPIRED). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npm.taobao.org/conventional-changelog-conventionalcommits error (CERT_HAS_EXPIRED). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npm.taobao.org/@types/node error (CERT_HAS_EXPIRED). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npm.taobao.org/@commitlint/format error (CERT_HAS_EXPIRED). Will retry in 10 seconds. 2 retries left.

在这里插入图片描述

解决方案

更新淘宝最新镜像源地址

npm config set registry https://registry.npmmirror.com

再次 pnpm install 测试 ok

在这里插入图片描述

转载请注明出处或者链接地址:https://www.qianduange.cn//article/6213.html
标签
评论
发布的文章

@JsonCreator和@JsonValue

2024-05-05 22:05:05

Python 字符串转换为 JSON

2024-05-05 22:05:00

大家推荐的文章
会员中心 联系我 留言建议 回顶部
复制成功!