Download and install latest release of NVM with homebrew
On command line nvm install 20
run ./bin/build.sh
Error below will occur (log show the build step only)
yarn run v1.22.22
$ ng build --prod
Option "--prod" is deprecated: Use "--configuration production" instead.
⠼ Generating browser application bundles (phase: building)...node:internal/crypto/hash:69
this[kHandle] = new _Hash(algorithm, xofLen);
^
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:69:19)
at Object.createHash (node:crypto:133:10)
at BulkUpdateDecorator.hashFactory (/Documents/tutorials/traduora/ever-traduora/webapp/node_modules/webpack/lib/util/createHash.js:145:18)
at BulkUpdateDecorator.update (/Documents/tutorials/traduora/ever-traduora/webapp/node_modules/webpack/lib/util/createHash.js:46:50)
at RawSource.updateHash (/Documents/tutorials/traduora/ever-traduora/webapp/node_modules/webpack/node_modules/webpack-sources/lib/RawSource.js:77:8)
at NormalModule._initBuildHash (/Documents/tutorials/traduora/ever-traduora/webapp/node_modules/webpack/lib/NormalModule.js:880:17)
at handleParseResult (/Documents/tutorials/traduora/ever-traduora/webapp/node_modules/webpack/lib/NormalModule.js:946:10)
at /Documents/tutorials/traduora/ever-traduora/webapp/node_modules/webpack/lib/NormalModule.js:1040:4
at processResult (/Documents/tutorials/traduora/ever-traduora/webapp/node_modules/webpack/lib/NormalModule.js:755:11)
at /Documents/tutorials/traduora/ever-traduora/webapp/node_modules/webpack/lib/NormalModule.js:819:5 {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
Node.js v18.20.2
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Expected behaviour
Build to success as per node 16
Describe the bug I tried to compile Traduora from source with Node 20.11.1 but build step failed. Same with Node 18.20.2. Node 16.20.2 works fine.
To Reproduce Steps to reproduce the behavior:
nvm install 20
./bin/build.sh
Expected behaviour Build to success as per node 16
Environment: