Error message “error:0308010C:digital envelope routines::unsupported“

1.降级到 Node.js v16。

您可以从 Node.js 的 website 重新安装当前的 LTS 版本。

您也可以使用 nvm。对于 Windows,请使用 nvm-windows。

2.启用传统 OpenSSL 提供程序。

在类 Unix 系统(Linux、macOS、Git bash 等)上:

bash 复制代码
export NODE_OPTIONS=--openssl-legacy-provider 

在 Windows 命令提示符下:

bash 复制代码
set NODE_OPTIONS=--openssl-legacy-provider

在 PowerShell 上:

复制代码
$env:NODE_OPTIONS = "--openssl-legacy-provider" 
相关推荐
光影少年3 小时前
RN与Flutter架构区别
前端·flutter·react native·react.js·架构·node.js
梅孔立1 天前
Codex 完整教程(Node.js安装 + npm安装Codex + DeepSeek配置 + 快捷键 + 设置)
前端·npm·node.js
晚风醉蝶1 天前
webpack 模块提取
前端·webpack·node.js·ast·逆向分析
YIAN2 天前
从 SSE 流式到结构化输出:LangChain 三大 OutputParser 与 ToolCall 方案全实战
前端·langchain·node.js
濮水大叔2 天前
Cabloy全栈框架的两个SSR入口:Vona集成式SSR vs Zova独立式SSR
typescript·node.js·全栈
怕浪猫2 天前
DeepSeek Harness 系列图解
面试·前端框架·node.js
百万蹄蹄向前冲2 天前
双端同步!云服务器装最新Node.js v26.10全过程追踪
服务器·人工智能·node.js
前端snow2 天前
ai agent--- 后端概念补充:Docker Compose、ElasticSearch、IK、BM25等
node.js
EdgeEcho2 天前
Node 里那个"只解第一帧"的坑,我用 172 行代码绕过去了
node.js
光影少年2 天前
Redis + Node 如何支撑百万级并发
redis·后端·node.js