问题描述
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