i am making changes my Angular app after a long time and getting this error. I have done npm install post that ng serve. and getting this error.
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ], library: 'digital envelope routines', reason: 'unsupported', code: 'ERR_OSSL_EVP_UNSUPPORTED'
Open your command prompt / terminal and run the following command:
Windows users
set NODE_OPTIONS=--openssl-legacy-provider
Mac users
export NODE_OPTIONS=--openssl-legacy-provider
OR
Downgrade node version
This error is because of NodeJS being v17 or later.
You will need to follow the following steps:
If you want to run it with NodeJS > v16 then upgrade your Angular application first to the latest version and install the current NodeJS LTS.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With