error:0308010C:digital envelope routines::unsupported (ERR_OSSL_EVP_UNSUPPORTED)
TL;DRThis error occurs when software tries to use an old or unsupported encryption method that newer versions of OpenSSL (used by Node.js and similar tools) no longer allow by default.
Likely causes
- Running an older build tool, bundler or library (such as webpack 4 or create-react-app) with Node.js 17 or newermost likely
- Custom code or scripts that explicitly request legacy encryption algorithmspossible
How to fix it
Safest first: SafeChanges settingsDangerous
Try running the command with the legacy OpenSSL provider enabledChanges settings
Set an environment variable before starting your app or build. This tells Node.js to allow the older methods temporarily.
NODE_OPTIONS=--openssl-legacy-provider npm startUpdate your project dependenciesChanges settings
Run the package manager update command to get newer versions of libraries that support current OpenSSL.
npm update⚠ Back up your project folder first.
If that didn't fix it
The error will keep appearing on every build or start until the root cause in the code or dependencies is addressed.
When to see a technician
Consult a developer if you cannot modify the project scripts or if this occurs in a production environment.
Related errors
codeSyntaxError: Cannot use import statement outside a modulecodeTypeError: Cannot read properties of undefined (reading 'map')codedocker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?codePermission denied (publickey). fatal: Could not read from remote repository.codegit push: error: failed to push some refs (rejected, non-fast-forward)