Skip to content

ERR_OSSL_EVP_UNSUPPORTED with nodejs v19.8.1Β #2902

@Peltoche

Description

@Peltoche

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 πŸ™‚

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions