Fix: Error: error:0308010C:digital envelope routines::unsupported NodeJs/Vue/React

Error: error:0308010C:digital envelope routines::unsupported

The Error 0308010C:digital envelope routines usually occurs while building a JavaScript NodeJS application with version 17 or above.

 % npm start
  Starting the development server...

  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ]
  library: 'digital envelope routines'
  reason: 'unsupported'

As you can see this is clearly an issue related to unsupported OpenSSL.


  1. Downgrade to a lower version of NodeJS like 16.x.
    nvm install 16 --lts
  2. In your package.json add --openssl-legacy-provider start flag to "start": "react-scripts start"
    start": "react-scripts --openssl-legacy-provider start"
    Not recommended for production!
  3. Make sure to NodeJS version with security fixes using,
    npm audit fix --force

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail:

Copyright ยฉ Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap