This article will show you in detail why the error:0308010C:digital envelope routines::unsupported appears and the solutions for it. Let’s read it now.
The reason of the error:0308010C:digital envelope routines::unsupported
In Node.js v17, a security flaw of the SSL provider was fixed. This fix had a similar effect on the SSL packages. If you don’t downgrade the SSL packages in your package.json before attempting to use SSL in Node.js in version 17 or later, you’ll get this error.
This error appears when you initialize a project. The leading cause of the error is that Nodejs in your project is not working correctly. In the next part of the article, we will show you some solutions to this problem. Pay attention to the article.
How to fix the error:0308010C:digital envelope routines::unsupported
Downgrade your Nodejs
You can reinstall the most recent LTS Node.js version by downloading the required version and installing it on your computer from their official website.
Or you can also reinstall the version of Nodejs using NVM by going to the manufacturer’s git link on your machine. After you download and install the Nodejs 16 version, the program will run an initialization command usual way.
Or you can also refer to running the set NODE_OPTIONS command on your computer so that the program can reconfigure and run normally. Here are the commands on Mac, Linux, and Windows, depending on the operating system you are installing for your machine.
Linux or macOS:
Run this command on your terminal, and error:0308010C: digital envelope routines::unsupported will no longer appear. Node.JS is one of the most popular platforms today for server-side network application development. This is a potent coding tool. Wish you success with the methods in the article.
In summary, the article has shown you how to fix the error:0308010C:digital envelope routines::unsupported, but I recommend you to use the run command because it will prevent version conflicts between member of the development team.
Maybe you are interested:
Name of the university: PTIT