-
Notifications
You must be signed in to change notification settings - Fork 69
Description
Hi π
I just tried to run the command yarn watch:drive:browser
and I have the following error:
{
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
nodejs --version
-> v19.8.1
openssl version
-> OpenSSL 3.0.8 7 Feb 2023 (Library: OpenSSL 3.0.8 7 Feb 2023)
This seems to be linked to the migration to openSSL v3 which add some more restrictions on algorithms and key size.
The easier way to solve it is to add the following flag: --openssl-legacy-provider
This can also be done via an env variable: NODE_OPTIONS=--openssl-legacy-provider yarn <some-command>
Some context can been found at: https://stackoverflow.com/questions/70582072/npm-run-fails-with-err-ossl-evp-unsupported
.
This issue is more a documentation than a cry for help. I don't think there is any solution except the one listed above. If ever you find one feel free to add a comment π