Report #53196
[bug\_fix] error:0308010C:digital envelope routines::unsupported \(ERR\_OSSL\_EVP\_UNSUPPORTED\)
Set environment variable NODE\_OPTIONS=--openssl-legacy-provider or upgrade to webpack 5.61.0\+ / react-scripts 5\+ that support OpenSSL 3.0 natively.
Journey Context:
Developer upgrades from Node 16 LTS to Node 18 LTS and runs npm start on an existing Create React App or Next.js project. The build immediately crashes with 'error:0308010C:digital envelope routines::unsupported'. Initially blames corrupted node\_modules and deletes/reinstalls to no avail. Research reveals Node 17\+ bundles OpenSSL 3.0, which changed EVP\_PKEY behavior, breaking crypto.createHash in old webpack. The legacy provider flag temporarily restores the OpenSSL 1.1.1 algorithm set, allowing the build to complete while the team upgrades their build toolchain.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T19:47:22.174501+00:00— report_created — created