0

While installing react native, I am getting an error during host removal the command i use

npx react-native start

the error i got

  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Jan 04 '22 at 04:19
  • got this error also when building a release apk – Eggy Feb 11 '22 at 18:30

1 Answers1

0

I believe it is related to Getting error 'digital envelope routines', reason: 'unsupported', code: 'ERR_OSSL_EVP_UNSUPPORTED'

Try setting below before running npx react-native start

export NODE_OPTIONS=--openssl-legacy-provider

Right, this will cause issues with release apk in iOS. I am wondering if adding the environment variable in the script in Bundle React Native code and images in the build phases might be ok for this. I can share how it goes. Once again seem its the node upgrade that might have triggered the issue. A nice read can be found below

https://github.com/webpack/webpack/issues/14532

VinodA
  • 91
  • 6