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.
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