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/

相关推荐
天若有情6732 天前
开源轻量双语工具|一键批量查询 NPM 包历史下载量,支持按作者批量统计
javascript·npm·github pages·开源工具·netlify·前端开源·npm克隆量
柚稚姐姐6 天前
npm install pnpm -g npm error code EACCES npm error syscall symlink
前端·npm·node.js
晴天167 天前
npm install -f(--force)深度解析:作用原理、报错根源与风险避坑指南
前端·npm·node.js
晴天167 天前
.npmrc 配置文件全解析:从换源到工程化的完整指南
npm·npmrc
晴天168 天前
peerDependencies 全面解析:前端依赖生态的核心机制与实战指南
前端·npm
晴天1611 天前
打造自己的 npm 包实战指南
前端·npm·node.js
西西小飞龙11 天前
npm vs pnpm
前端·npm·node.js
李游Leo14 天前
Node.js 开发环境安装与 npm/pnpm 国内镜像配置(Windows / macOS / Linux)
npm·node.js·pnpm·前端开发·开发环境
晴天1619 天前
Node.js 中 `npm install` 命令分析-Day30
前端·npm·node.js
_Rookie._19 天前
Package.json 的imports 和 exports
npm