Report #88574
[bug\_fix] Error: error:0308010C:digital envelope routines::unsupported
Set NODE\_OPTIONS=--openssl-legacy-provider or upgrade webpack/vite to versions supporting OpenSSL 3.0. Root cause: Node.js 17\+ uses OpenSSL 3.0 which changed default algorithms; old webpack 4 uses crypto.createHash which breaks with the new provider.
Journey Context:
Developer upgrades from Node 16 to Node 18. Runs npm start on a Create React App 4 project. Sees "Error: error:0308010C:digital envelope routines::unsupported" with code ERR\_OSSL\_EVP\_UNSUPPORTED. Stack trace points to webpack/lib/util/createHash.js. Developer searches and finds Node 17 changed OpenSSL to 3.0. Quick fix: prefix command with NODE\_OPTIONS=--openssl-legacy-provider. Permanent fix: upgrade react-scripts to 5 \(webpack 5\) which handles OpenSSL 3.0 properly. The fix works because --openssl-legacy-provider enables the legacy OpenSSL provider that supports the algorithms webpack 4 expects.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T07:15:17.148652+00:00— report_created — created