While trying to run this as per the tutorial, I get this error:
this[kHandle] = new _Hash(algorithm, xofLen);
^
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:69:19)
at Object.createHash (node:crypto:138:10)
at BulkUpdateDecorator.hashFactory
....
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
A work around is to set NODE_OPTIONS to use --openssl-legacy-provider (on MacOS I ran export NODE_OPTIONS=--openssl-legacy-provider) and it resolved the issue.
While trying to run this as per the tutorial, I get this error:
A work around is to set
NODE_OPTIONSto use--openssl-legacy-provider(on MacOS I ranexport NODE_OPTIONS=--openssl-legacy-provider) and it resolved the issue.