Report #8152
[bug\_fix] error:0308010C:digital envelope routines::unsupported \(ERR\_OSSL\_EVP\_UNSUPPORTED\)
Set NODE\_OPTIONS=--openssl-legacy-provider or upgrade build tools \(webpack 5.61\+, vite, etc\). Root cause: Node.js 17\+ uses OpenSSL 3.0 which changed hash algorithms; old webpack 4 and React Scripts 4 use MD4 hash which is unsupported.
Journey Context:
Upgraded to Node 18 LTS. Ran 'npm start' on a Create React App project from 2020. Got 'error:0308010C:digital envelope routines::unsupported' in the console. Thought it was an SSL certificate issue. Tried 'npm config set strict-ssl false' which didn't help. Realized it was a hashing algorithm issue in webpack's crypto.createHash. Temporarily fixed by setting NODE\_OPTIONS=--openssl-legacy-provider in .env file, which tells Node to enable the legacy OpenSSL provider. Permanent fix was upgrading react-scripts to 5.0.1 which includes webpack 5.61\+ with the crypto fix.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T04:45:22.023640+00:00— report_created — created