yarn install 出现certificate has expired

发布于:2024-04-30 ⋅ 阅读:(23) ⋅ 点赞:(0)

apple@bobo jeecgboot-vue3 % yarn install           
yarn install v1.22.19
[1/6] 🔍  Validating package.json...
[2/6] 🔍  Resolving packages...
[3/6] 🚚  Fetching packages...
info There appears to be trouble with your network connection. Retrying...
error An unexpected error occurred: "https://registry.npm.taobao.org/os-filter-obj/download/os-filter-obj-2.0.0.tgz: certificate has expired".
info If you think this is a bug, please open a bug report with the information provided in "/Users/apple/Desktop/work/gitlab/bn-mgr/jeecgboot-vue3/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
 

apple@bobo jeecgboot-vue3 % yarn config list
yarn config v1.22.19
info yarn config
{
  'version-tag-prefix': 'v',
  'version-git-tag': true,
  'version-commit-hooks': true,
  'version-git-sign': false,
  'version-git-message': 'v%s',
  'init-version': '1.0.0',
  'init-license': 'MIT',
  'save-prefix': '^',
  'bin-links': true,
  'ignore-scripts': false,
  'ignore-optional': false,
  registry: 'https://registry.npm.taobao.org/',
  'strict-ssl': true,
  'user-agent': 'yarn/1.22.19 npm/? node/v20.12.2 darwin x64',
  disturl: 'https://npm.taobao.org/dist',
  lastUpdateCheck: 1714461261224,
  'sass-binary-site': 'https://npm.taobao.org/mirrors/node-sass'
}
info npm config
{
  'strict-ssl': false,
  registry: 'http://mirrors.cloud.tencent.com/npm/'
}
✨  Done in 0.20s.
apple@bobo jeecgboot-vue3 % yarn config set strict-ssl false
yarn config v1.22.19
success Set "strict-ssl" to "false".
✨  Done in 0.18s.

亲测有效


网站公告

今日签到

点亮在社区的每一天
去签到