[Fix] Error error 0308010C digital envelope routines unsupported

The error “Error: error:0308010C:digital envelope routines::unsupported” is an error that is invoked whenever you are coding in react.js. Given below is the snippet of the error which you can find here:

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

I would like to share with you the steps I took to fix the “Error: error:0308010C:digital envelope routines::unsupported” in react file:

Why “Error error 0308010C digital envelope routines unsupported” error is seen?

The error, “Error: error:0308010C:digital envelope routines::unsupported” seems to be an error in the latest version of node js, downgrading the node version can fix the error for the most cases.

The detailed solution to fix the error “Error: error:0308010C:digital envelope routines::unsupported”, is given below:

How to fix the error, “Error error0308010Cdigital envelope routines unsupported”?

As simple fix of the error, you can try to delete the Node.js version 17+ and try to reinstall the Node.js version 16+. You can also try to update the legacy provider in your terminal.

To fix the error, “Error: error:0308010C:digital envelope routines::unsupported”, follow one of the methods given below:

Method 1: Try to uninstall Node.js version 17+ and reinstall the Node.js version 16+

To fix the error, “Error: error:0308010C:digital envelope routines::unsupported.”, you will have to delete the “proxy”: “http://localhost:6000”, you will have to re-install an older version of Node.js by following the below steps.

Step 1: You can install the current LTS node js version from their official site; you can fund its link here. In case you wish to download specific versions, you can find its link here;

Step 2: If you use NVM (Node Version Manager)

For Linux and Mac users, you could use this nvm package found in the link below :

https://github.com/nvm-sh/nvm

For windows users, you could use this nvm package, you can find the link below:

https://github.com/coreybutler/nvm-windows

Method 2: Open terminal and use below commands

To fix the error, “Error: error:0308010C:digital envelope routines::unsupported.”, you have to follow the below given steps:

For Linux & Mac OS users:

export NODE_OPTIONS=--openssl-legacy-provider

For Windows users:

set NODE_OPTIONS=--openssl-legacy-provider

This should fix the error, “Error: error:0308010C:digital envelope routines::unsupported.”

Conclusion

To fix the error “Error: error:0308010C:digital envelope routines::unsupported.”, you can try to delete the Node.js version 17+ and try to reinstall the Node.js version 16+. You can also try to update the legacy provider in your terminal.