Certificate has expired(npm 安装strapi)

报错信息

解决方法

1、清空缓存,有时,损坏的缓存会导致连接问题

npm cache clean --force

2、切换到淘宝镜像源的 npm 注册表

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

执行这两步后就可以执行自己想要安装的东西了,我是在执行npx create-strapi-app schedul命令创建strapi项目时报上述错误。仅供参考。

当然再安装好后你可以切换回官方注册表,命令如下。

npm config set registry https://registry.npmjs.org/

相关推荐
少年的范儿1 天前
Windows 安装 Node.js 教程:nvm 版本管理 + pnpm 安装配置
windows·npm·node.js
peach1 天前
同样是装依赖,为什么 npm 长成 node_modules,Maven 长成 .m2
npm·node.js·maven
chunyublog3 天前
HDFS 上传文件名空格问题排障教程
前端·javascript·npm
Jack N4 天前
【Strapi 系列之六】从零做设计公司官网(一):Strapi 端 8 个模型这样建
cms·strapi
MasonYyp4 天前
安装npm依赖仓库Verdaccio
前端·npm·node.js
jiangliushi65 天前
GPT-6.1 Sol 免费用:PowerShell 装 Codex 报“禁止运行脚本 npm.ps1”?一条命令解决
前端·gpt·npm
Jack N6 天前
【Strapi 系列之五】前端怎么接?Next.js + Tailwind 拉取 Strapi 数据(含代码)
开发语言·前端·javascript·strapi
Elcker7 天前
YnuoAgent(依诺):一个 npm 包,跑起属于自己的 AI 研发平台
前端·人工智能·npm
Patrick_Wilson9 天前
悬浮提示从哪来:LSP、tsserver 与 .d.ts
typescript·npm·前端工程化
Patrick_Wilson9 天前
npm 的 bin 如何接到 npm run 与 npx
npm·node.js·前端工程化