Error: ERR_OSSL_EVP_UNSUPPORTED when running npm run develop with Node.js v20.17.0
Hi, I encountered an error while trying to run the development server using npm run develop. The error occurs with Node.js v20.17.0 and seems to be related to OpenSSL's digital envelope routines.
Steps to Reproduce
- Clone the repository.
- Run npm install to install dependencies.
- Run npm run develop to start the development server.
Error Message:
Error: error:8388016:digital envelope routines::unsupported
at How.Hesh (node_internal/crypto/near-79:19)
at Object.createHash (node crypto-139:18)
at BulkUpdateDecorator.hasFactory (/home/usama/Daoud_DATA/techstack-generator/node_modules/webpack/lib/util/createHash.js:155:18)
at BulkUpdateDecorator.update (/home/usama/Daoud_DATA/techstack-generator/node_modules/webpack/lib/util/createHash.js:55:51)
at /home/usama/Daoud_DATA/techstack-generator/node_modules/webpack/lib/DefinePlugin.js:568:16
at Array.forEach '
Temporary Workaround: I found that downgrading Node.js to v16.x or v18.x resolves the issue. This seems to be related to OpenSSL changes in Node.js v20.x.
Expected Behavior:
- The development server should start without errors.
Possible Solution:
- Update dependencies to support Node.js v20.x.
- Add a note in the documentation about supported Node.js versions.
Additional Context:
- This issue might be related to the OpenSSL configuration in Node.js v20.x. It would be helpful to update the project to support newer Node.js versions or provide clear documentation about compatibility.