TraceResolve
MCP

Node.js: Error: digital envelope routines::unsupported (ERR_OSSL_EVP_UNSUPPORTED)

Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:69:19) code: 'ERR_OSSL_EVP_UNSUPPORTED'
Immediate Remediation
bash
export NODE_OPTIONS=--openssl-legacy-provider && npm run build
Root Cause Analysis

Node.js is using OpenSSL 3 which removed support for the legacy MD4 hash algorithm, and the build tool (e.g., Webpack or PostCSS) relies on it, causing the ERR_OSSL_EVP_UNSUPPORTED error.

Verification & Guardrails

  • This workaround is temporary; upgrade to Webpack 5.61+ or PostCSS 8.3+ for a permanent fix.
  • For Windows, use 'set NODE_OPTIONS=--openssl-legacy-provider' in cmd or '$env:NODE_OPTIONS="--openssl-legacy-provider"' in PowerShell.
  • Verify the fix works by running 'node --openssl-legacy-provider -e "require('crypto').createHash('md4').digest('hex')"' successfully.

Have a custom or uncategorized crash?

Run your trace through our in-memory client privacy sandbox for instant SRE remediation.

Open Diagnostic Studio