-
Notifications
You must be signed in to change notification settings - Fork 59
Description
The error ERR_OSSL_EVP_UNSUPPORTED has been mentioned in the release notes for Node.js 17.
If you hit an ERR_OSSL_EVP_UNSUPPORTED error in your application with Node.js 17, it’s likely that your application or a module you’re using is attempting to use an algorithm or key size which is no longer allowed by default with OpenSSL 3.0. A command-line option, --openssl-legacy-provider, has been added to revert to the legacy provider as a temporary workaround for these tightened restrictions.
is it the right solution ?
As a workaround solution you can fix this by using the legacy provider for openssl. So, you need to edit the package.json file under your application’s root directory and check for the following lines and replace them accordingly.
replace by "start": "react-scripts --openssl-legacy-provider start"
replace by "build": "react-scripts --openssl-legacy-provider build"