Report #52835
[bug\_fix] Error: error:0308010C:digital envelope routines::unsupported or: ERR\_OSSL\_EVP\_UNSUPPORTED
Set the environment variable NODE\_OPTIONS=--openssl-legacy-provider before running the command \(e.g., export NODE\_OPTIONS=--openssl-legacy-provider on Unix or set NODE\_OPTIONS=--openssl-legacy-provider on Windows\), or upgrade webpack/react-scripts to versions 5\+ which support OpenSSL 3.0, or downgrade to Node.js 16 LTS which uses OpenSSL 1.x.
Journey Context:
You upgraded to Node.js 18 \(or 17\+\) on your machine. Suddenly your Create React App project fails to start with 'digital envelope routines::unsupported'. The stack trace mentions crypto.js and hash functions. You search online and find that Node 17\+ uses OpenSSL 3.0 which is stricter. Your old webpack 4 configuration uses crypto.createHash with md4 which is disabled by default in OpenSSL 3.0. You have three options: set NODE\_OPTIONS=--openssl-legacy-provider to re-enable legacy algorithms temporarily, upgrade to webpack 5 which handles this better, or downgrade to Node 16. You choose the flag as a quick fix while planning the webpack upgrade.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T19:10:44.277266+00:00— report_created — created