遇到
opensslErrorStack: ['error:03000086:digital envelope routines::initialization error'], library: 'digital envelope routines', reason: 'unsupported', code: 'ERR_OSSL_EVP_UNSUPPORTED'?
opensslErrorStack: ['error:03000086:digital envelope routines::initialization error'],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
问题起因:npm 降级 导致与 openssl 不兼容导致的初始化失败;
解决办法:通过更改环境变量,进行管制
export NODE_OPTIONS=--openssl-legacy-provider