Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERR_OSSL_EVP_UNSUPPORTED with nodejs v19.8.1 #2902

Open
Peltoche opened this issue Apr 17, 2023 · 1 comment
Open

ERR_OSSL_EVP_UNSUPPORTED with nodejs v19.8.1 #2902

Peltoche opened this issue Apr 17, 2023 · 1 comment

Comments

@Peltoche
Copy link

Peltoche commented Apr 17, 2023

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 🙂

@Crash--
Copy link
Contributor

Crash-- commented Apr 17, 2023

Yep for now we only support node 16.

We had an internal discussion about node 17 and + since they have changed the DNS resolution (nodejs/node#40537) our current workaround for that is to use node --dns-resolution-order=ipv4first

Thanks for testing on node 19.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants