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/

相关推荐
咔咔一顿操作2 天前
轻量无依赖!autoviwe 页面自适应组件实战:从安装到源码深度解析
javascript·arcgis·npm·css3·html5
aidou13143 天前
Visual Studio Code(VS Code)安装步骤
vscode·npm·node.js·环境变量
全栈小53 天前
【前端】win11操作系统安装完最新版本的NodeJs运行npm install报错,提示在此系统上禁止运行脚本
前端·npm·node.js
DevOps探索之旅4 天前
Hadess从入门到精通,如何详细管理Npm制品
npm·hadess·国产开源制品管理工具·一文上手
一心赚狗粮的宇叔5 天前
VScode常用扩展包&Node.js安装及npm包安装
vscode·npm·node.js·web
嘿是我呀5 天前
【用npm安装node时报错“npm 无法加载文件”】
前端·npm·node.js
Hexene...5 天前
【前端Vue】npm install时根据新的状态重新引入实际用到的包,不引入未使用到的
前端·vue.js·npm
霸气小男5 天前
使用nvm安装node之后在vscode中无法使用npm报错
npm
i建模6 天前
在 Ubuntu 中为 npm 切换国内镜像源
linux·ubuntu·npm
每天瞎忙的农民工6 天前
Ubuntu 24 安装npm22
linux·运维·ubuntu·npm