Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on yarn start #137

Open
fhughes90 opened this issue Oct 8, 2023 · 2 comments
Open

Error on yarn start #137

fhughes90 opened this issue Oct 8, 2023 · 2 comments

Comments

@fhughes90
Copy link

fhughes90 commented Oct 8, 2023

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?

@abz98
Copy link
Contributor

abz98 commented Nov 29, 2023

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

@fhughes90
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants