How to fix the error message “error:0308010C:digital envelope routines::unsupported”
As a quick fix, you can enable legacy OpenSSL provider.
export NODE_OPTIONS=--openssl-legacy-provider
Note for Yarn users.
Yarn users can use yarn-audit-fix, which can be run without installing as a dependency via
npm_config_yes=true npx yarn-audit-fix