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

Error ERR_OSSL_EVP_UNSUPPORTED when running npm start with Node 20 #60

Open
Gspohu opened this issue Oct 11, 2023 · 4 comments
Open

Error ERR_OSSL_EVP_UNSUPPORTED when running npm start with Node 20 #60

Gspohu opened this issue Oct 11, 2023 · 4 comments

Comments

@Gspohu
Copy link

Gspohu commented Oct 11, 2023

Description:
When attempting to start the application using the npm start command, I encountered an error related to digital envelope routines, indicating something is "unsupported". Here's the complete error message:

Error: error:0308010C:digital envelope routines::unsupported
...
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'

Steps to reproduce:

  1. Clone the repository from https://github.com/ciaochaos/qrbtf.git.
  2. Navigate to the project directory with cd qrbtf.
  3. Install dependencies with npm install.
  4. Run the application with npm start.

Expected result:
The application should start without errors.

Actual result:
The error ERR_OSSL_EVP_UNSUPPORTED is displayed, and the application fails to start.

Additional information:
I am using Node version 20. It seems this error is related to the OpenSSL version used by Node.js. An update or configuration change might be needed.

@Gspohu
Copy link
Author

Gspohu commented Oct 11, 2023

I can confirm with node 18 the server start well

@esqanor
Copy link

esqanor commented Nov 1, 2023

I can confirm with node 18 the server start well

tried with 18.12.1 and got same error

@Light-Wing
Copy link

Light-Wing commented Nov 5, 2023

The following should fix/bypass it. If anyone has a better solution, I'm interested in knowing as well.

make sure to set the env variables and run:

export NODE_OPTIONS=--openssl-legacy-provider

https://stackoverflow.com/questions/69665222/node-js-17-0-1-gatsby-error-digital-envelope-routinesunsupported-err-os to fix ssl errors opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ], library: 'digital envelope routines', reason: 'unsupported', code: 'ERR_OSSL_EVP_UNSUPPORTED

@afzalimdad9
Copy link

export NODE_OPTIONS=--openssl-legacy-provider

Running it fixed the problem for me

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

4 participants