Report #9488
[bug\_fix] Error: error:0308010C:digital envelope routines::unsupported \(ERR\_OSSL\_EVP\_UNSUPPORTED\)
Set environment variable NODE\_OPTIONS=--openssl-legacy-provider before running the command, or upgrade webpack to v5.61.0\+ \(or the specific build tool\) to a version supporting OpenSSL 3.0, or downgrade to Node.js 16 LTS which uses OpenSSL 1.x.
Journey Context:
You upgrade to Node.js 17 or 18 and suddenly your React app \(using webpack 4\) or old Vue CLI build fails with 'error:0308010C:digital envelope routines::unsupported'. You search and find this is due to Node 17\+ using OpenSSL 3.0 which has stricter algorithms, breaking old webpack crypto usage. You find the Node.js changelog mentioning this breaking change. You try setting NODE\_OPTIONS=--openssl-legacy-provider in your package.json scripts: "NODE\_OPTIONS=--openssl-legacy-provider react-scripts build". It works immediately. You realize the permanent fix is upgrading webpack to 5.61.0\+ or upgrading the entire toolchain, but the legacy provider flag unblocks you immediately.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T08:17:27.665602+00:00— report_created — created