When you try to run a project in node and you get an error like:
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:69:19)
at Object.createHash (node:crypto:133:10)
Fix it with this fix I found from NikaidouSkin42
Or you can run this command,then run "npm run build"。 it still works on Node.js 16 :
export NODE_OPTIONS=--openssl-legacy-provider
set NODE_OPTIONS=--openssl-legacy-provider
$env:NODE_OPTIONS="--openssl-legacy-provider"
No I don't understand the what or why of it, I'd love to know.