Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Node.js ERR_OSSL_EVP_UNSUPPORTED error when running npm run start

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.

like image 498
AmrShams07 Avatar asked Aug 31 '25 22:08

AmrShams07


1 Answers

Try to run that on your terminal before running starting command:

# linux
export NODE_OPTIONS=--openssl-legacy-provider
# windows
set NODE_OPTIONS=--openssl-legacy-provider
like image 91
rrrokhtar Avatar answered Sep 03 '25 12:09

rrrokhtar