Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

666
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!