starting coach error - library: digital envelope routines, reason: unsupported, code: ERR_OSSL_EVP_UNSUPPORTED

The following error occurs when starting coach.sh, due to issues with the latest node.js version.

library: digital envelope routines

reason: unsupported

code: ERR_OSSL_EVP_UNSUPPORTED

Fix: Change the start and build parameters in package.json as follows:

  "main": "electron-start.for.builder.js",
  "scripts": {   
    "start": "SET NODE_OPTIONS=--openssl-legacy-provider && react-scripts start",
    "build": "SET NODE_OPTIONS=--openssl-legacy-provider && react-scripts build",

see also https://stackoverflow.com/questions/69719601/getting-error-digital-envelope-routines-reason-unsupported-code-err-oss

Edited by x_chrismay