Problem Description
Error: error:0308010C:digital envelope routines::unsupported
../node_modules/@umijs/deps/compiled/babel-loader/index.js:1:130029 {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
problem causes
Npm upgrade caused initialization failure caused by incompatibility with openssl
Solution
Control by changing environment variables
export NODE_OPTIONS=--openssl-legacy-provider
Deployed successfully