Pass -openssl-legacy-provider to Webpack or the CLI Tool There are at least 3 ways by which you can fix this error. How to Fix the '0308010c:digital envelope routines::unsupported' Error The error can also occur because you’re using Node 17. You can see I’m using Node 17.0.0, which is not an LTS version of Node. You are likely getting this error because of 2 main reasons: What Causes the '0308010c:digital envelope routines::unsupported' Error?
But first, let’s discuss what causes the error.
In this article, you’ll learn how to fix this error in 3 ways.
You’re not alone, because I’m currently getting it too: If you work with Node.js and command line interface solutions like Webpack, create-react-app, or vue-cli-service, you might have encountered the error, Error: error:0308010c:digital envelope routines::unsupported.