ERR_OSSL_EVP_UNSUPPORTED Node.js Origin: Application & API OSI layer 7 · Application Last updated 13 Oct 2026

Error: error:0308010C:digital envelope routines::unsupported

An old build tool (webpack 4, old react-scripts) uses a hash algorithm that OpenSSL 3 in Node 17+ disables.

Exact message you may see digital envelope routines::unsupported
Seen on: Node.js

Meaning

Node 17 switched to OpenSSL 3, which removes MD4 by default. Webpack 4 uses MD4 for hashing, so builds crash.

Common causes

  • webpack 4 / react-scripts 4 on Node 17+
  • Other tools hashing with legacy algorithms

⚡ Quick fix

  1. Upgrade to webpack 5 / react-scripts 5+ / Vite
  2. Temporary: NODE_OPTIONS=--openssl-legacy-provider
  3. Or use Node 16 for that legacy project

Detailed fix by platform

Node.js

  1. NODE_OPTIONS=--openssl-legacy-provider npm run build

How to diagnose

  1. Tool — Which bundler version?
  2. Node — Version 17+?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Application & API. Errors that are often confused with or caused by this one (click to open):

[Vue warn]: Component is missing template or render function — Vue: [Vue warn]: Component is missing template or render function. (Vue)[Vue warn]: Component…ca md too weak / ee key too small — OpenSSL: error:0A00018E:SSL routines::ca md too weak / error:140AB18F:SSL routines:SSL_CTX_use_certificate:ee key too small (SSL / TLS)ca md too weak / ee k…Cloud Functions: Build failed — Cloud Functions: Build failed: function.js does not exist / npm install failed with exit code 1 (Cloud Build step) (Google Cloud / Firebase)Cloud Functions: Buil…Component provided template option but runtime compilation is not supported — Vue: [Vue warn]: Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js" (Vue)Component provided te…COPY failed — COPY failed: file not found in build context / "/app/x": not found (Docker)COPY failedELIFECYCLE — npm ERR! code ELIFECYCLE / Command failed with exit code 1 (npm)ELIFECYCLEFailed building wheel — error: subprocess-exited-with-error / Failed building wheel for x (Python)Failed building wheelFailed to compile: ESLint errors during next build — Next.js: Failed to compile. ./src/app/page.tsx 12:7 Error: 'x' is assigned a value but never used. @typescript-eslint/no-unused-vars (Next.js)Failed to compile: ES…ERR_OSSL_…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.