Error on `yarn start`
First time install for yarn pkg or create react app. I follow the documentation and get this error on yarn start
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
I thought maybe my nodejs was outdated so I ran brew upgrade node and get this version of nodejs
❯ node -v
v20.8.0
Any guidance where to start troubleshooting? Here are some more details about my setup.
Hardware: 2018 MacBook Pro, intel OS: macOS Sonoma 14.0 Yarn: 1.22.19
Recommendations
- I do see this suggestion on the web
NODE_OPTIONS=--openssl-legacy-provider yarn dev
but I'm not sure how to apply this? Is this suppose to be in a .conf file somewhere?
@fhughes90 This is an issue with OpenSSL. As Node upgraded to version 3.0, to mitigate this error, we can change the package.json start build script as follows: "scripts": { "start": "cross-env NODE_ENV=local react-scripts --openssl-legacy-provider start", } Can i raise a PR ?
Oh, ok. Yes, you can raise a PR.