11 Apr 2023

Node.js OpenSSL issue

The algorithm being used for hashing is not supported by your version of OpenSSL.

library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'

Solution

Add this to your .zshrc

export NODE_OPTIONS=--openssl-legacy-provider