报错error:0308010C:digital envelope routines::unsupported

907 阅读1分钟

安装umijs项目后执行,报错error:0308010C:digital envelope routines::unsupported

我的node版本是Node.js v18.14.0, windows版本, 通过以下命令解决

set NODE_OPTIONS=--openssl-legacy-provider

如是mac电脑,可以设置

export NODE_OPTIONS=--openssl-legacy-provider

参考:www.lanlanwork.com/blog/?post=…