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'
code: 'ERR_OSSL_EVP_UNSUPPORTED
As you can see this is clearly an issue related to unsupported OpenSSL.
Fixes/Solutions:
- Downgrade to a lower version of NodeJS like 16.x.
nvm install 16 --lts - In your package.json add --openssl-legacy-provider start flag to "start": "react-scripts start"
start": "react-scripts --openssl-legacy-provider start" - Make sure to NodeJS version with security fixes using,
npm audit fix --force
Related Articles:
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!