Report #72593
[bug\_fix] ERR\_OSSL\_EVP\_UNSUPPORTED error:0308010C:digital envelope routines::unsupported
Set NODE\_OPTIONS=--openssl-legacy-provider environment variable before running the command \(export NODE\_OPTIONS=--openssl-legacy-provider on Unix, set on Windows\), or upgrade to webpack 5.61.0\+ \(or the build tool causing the issue\) which supports OpenSSL 3.0.
Journey Context:
You upgrade to Node.js 17, 18, or 20 \(which ship OpenSSL 3.0\) and try to build your existing React or Angular project using webpack 4 or older vue-cli. The build crashes with ERR\_OSSL\_EVP\_UNSUPPORTED and mentions 'error:0308010C:digital envelope routines::unsupported'. You search and find it's an OpenSSL 3.0 incompatibility with older crypto.createHash calls in webpack 4. You try reinstalling node\_modules but it persists. You find that Node 17 introduced OpenSSL 3.0 with stricter algorithms. The immediate fix is setting NODE\_OPTIONS=--openssl-legacy-provider to enable the legacy OpenSSL provider, allowing the old crypto calls to work. Alternatively, you upgrade to webpack 5.61.0\+ which properly supports OpenSSL 3.0 without the flag.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T04:26:14.654006+00:00— report_created — created