I’m encountering an error when trying to run npm run start on my Node.js project. The error message I’m seeing is:
ex.js:59:103 {
opensslErrorStack: [‘error:03000086:digital envelope routines::initialization error’],
library: ‘digital envelope routines’,
reason: ‘unsupported’,
code: ‘ERR_OSSL_EVP_UNSUPPORTED’
}
Node.js v19.8.1
ERROR: "front" exited with 1.
I’ve checked that the port is empty and no process is running, but the error persists. Can anyone help me understand what might be causing this error and how to fix it?
I tried to install nvm and install node 14.17 but still facing the same error
2
Answers
Try to run that on your terminal before running starting command:
ERR_OSSL_EVP_UNSUPPORTED generally occurs when an application attempts to use an algorithm or key size which is no longer allowed by default with OpenSSL 3.0.
To fix this, you can upgrade Node.js to the latest LTS version or use the –openssl-legacy-provider option.
For Linux:
For Windows:
You may find these articles helpful.