minesweeper-react-typescript icon indicating copy to clipboard operation
minesweeper-react-typescript copied to clipboard

OpenSSL error with newer Node version

Open ncseffai opened this issue 3 years ago • 0 comments

When you try to run or build the application, you will receive the following error:

Error: digital envelope routines::unsupported

opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ], library: 'digital envelope routines', reason: 'unsupported', code: 'ERR_OSSL_EVP_UNSUPPORTED'

Possible cause of error can be found in this discussion: https://stackoverflow.com/questions/69665222/node-js-17-0-1-gatsby-error-digital-envelope-routinesunsupported-err-os

WORKAROUND: Modified the package.json file "app:start": "react-scripts --openssl-legacy-provider start", "app:build": "react-scripts --openssl-legacy-provider build", "app:test": "react-scripts --openssl-legacy-provider test",

ncseffai avatar Feb 09 '22 16:02 ncseffai