DEV Community

Antony Kanithkar
Antony Kanithkar

Posted on

Error: error:0308010C:digital envelope routines::unsupported at new Hash

The error message you're encountering seems to be related to an issue with OpenSSL, which is used by Node.js for cryptographic functions. The specific error message ERR_OSSL_EVP_UNSUPPORTED suggests that there might be a compatibility issue with the version of Node.js you're using (v18.16.1).

As of my last knowledge update in September 2021, the latest Node.js LTS version was 14.x. It's possible that Node.js v18.x has been released since then and might have introduced changes or compatibility issues.

To resolve this issue, I recommend trying the following steps:

  1. Check the Node.js version requirements for your project. Ensure that the version of Node.js you are using is compatible with all the dependencies in your project, including react-scripts.

  2. If you have multiple versions of Node.js installed, make sure you are using the correct version. You can switch between Node.js versions using a version manager like nvm (Node Version Manager).

  3. Try reverting to the latest LTS version of Node.js (e.g., v14.x) to see if the issue persists.

  4. If you are using a specific version of Node.js required by your project, try downgrading to a lower minor version within the same major version (e.g., from v18.16.1 to v18.15.x) to see if that resolves the issue.

  5. If none of the above steps work, consider checking for updates or bug reports related to react-scripts and Node.js v18.x to see if there are any known compatibility issues.

  6. If you're still facing issues, consider posting a question on a developer community or GitHub repository associated with react-scripts to seek help from the maintainers and other developers who might have encountered similar issues.

Remember that software ecosystems, including Node.js and its dependencies, are constantly evolving, and it's essential to ensure that all versions and dependencies are compatible with each other. If there are known issues or compatibility problems, using the recommended versions or seeking support from the community can often help resolve them.

Top comments (0)