Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

667
Vistas
What is --openssl-legacy-provider in NPM?

I was building a simple React app using Tailwind. I used create-react-app and then installed tailwind. I have done this many times before.

In order to install Tailwind, I also had to install craco and change package.json "scripts" to use craco, like so:

"scripts": {
    "start": "craco start",
    "build": "craco build",
    "test": "craco test",
    "eject": "react-scripts eject"
  }

However, this time, when I ran npm start, I got an error that I had never encountered before:

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

So I searched on StackOverflow and someone suggested adding --openssl-legacy-provider to my "start" script like this:

"scripts": {
    "start": "craco --openssl-legacy-provider start",
    "build": "craco build",
    "test": "craco test",
    "eject": "react-scripts eject"
  }

And it's working now. But can somebody please explain to me what --openssl-legacy-provider actually is and how it works?

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Due to changes on Node.js v17, --openssl-legacy-provider was added for handling key size on OpenSSL v3. You somehow have installed the latest version of node.

  1. Restore your previous version of nodejs.
  2. Go and manually remove the node dependency(e.g. "node":17.4.3) from package.json and packagelock.json.
  3. Delete node_modules folder and use npm install to reinstall node_modules.
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda