Report #63088
[bug\_fix] error:0308010C:digital envelope routines::unsupported
Set NODE\_OPTIONS=--openssl-legacy-provider or upgrade build tooling \(webpack 5\+, vite\) to versions supporting OpenSSL 3.0
Journey Context:
Developer upgrades to Node 18 on macOS or Linux with OpenSSL 3.0. Running npm run build on an older webpack 4 project crashes with the OpenSSL error. Developer initially thinks it's a corrupted node\_modules and deletes/reinstalls. Error persists. They search and find it's Node 17\+'s switch to OpenSSL 3.0 breaking crypto.createHash in old webpack. They temporarily add export NODE\_OPTIONS=--openssl-legacy-provider to .zshrc to enable legacy OpenSSL provider. Eventually they upgrade to webpack 5 which properly supports OpenSSL 3.0 without flags.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T12:22:28.378913+00:00— report_created — created