-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
This error might be caused due to OpenSSL-related changes in Node.js v17 and above. OpenSSL 3.0 is used in node versions v17+, which has stricter handling of cryptographic functions, and some older cryptographic algorithms are now legacy code.
A temporary solution would be to add a NODE_OPTIONS=--openssl-legacy-provider to build and dev scripts to support the OpenSSL legacy provider.
Node js version - 23.1.0
Full logs -
node:internal/crypto/hash:79
this[kHandle] = new _Hash(algorithm, xofLen, algorithmId, getHashCache());
^
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:79:19)
at Object.createHash (node:crypto:139:10)
opensslErrorStack: [
'error:03000086:digital envelope routines::initialization error',
'error:0308010C:digital envelope routines::unsupported'
],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
Node.js v23.1.0Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels