opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ], library: 'digital envelope routines', reason: 'unsupported', code: 'ERR_OSSL_EVP_UNSUPPORTED'

原因:node版本与openssl 不兼容导致的初始化失败 

解决:

windows执行:set NODE_OPTIONS=--openssl-legacy-provider

mac执行:export NODE_OPTIONS=--openssl-legacy-provider

posted @ 2023-04-25 23:19  程序员小艺  阅读(2488)  评论(0编辑  收藏  举报