react-ultimate-resume icon indicating copy to clipboard operation
react-ultimate-resume copied to clipboard

Error on `yarn start`

Open fhughes90 opened this issue 2 years ago • 2 comments

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 avatar Oct 08 '23 20:10 fhughes90

@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 ?

abz98 avatar Nov 29 '23 12:11 abz98

Oh, ok. Yes, you can raise a PR.

fhughes90 avatar Dec 26 '23 02:12 fhughes90