error:0308010C:digital envelope routines::unsupported
This error occurs because of the recent release of OpenSSL3.0 in node.js V17 version, and OpenSSL3.0 adds strict limits on allowed algorithms and key sizes, which may affect the ecosystem cause some impact.
Some applications that can run normally before node.js V17, but in V17 and above versions may throw the following exceptions:
node:internal/crypto/hash:67 this[kHandle] = new _Hash(algorithm, xofLen); ^ Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:67:19) at Object.createHash (node:crypto:130:10) at module.exports.__webpack_modules__.57442.module.exports (/Users/workspace/React/umiapp/node_modules/@umijs/deps/compiled/webpack/4/bundle4.js:135907:62) at NormalModule._initBuildHash (/Users/workspace/React/umiapp/node_modules/@umijs/deps/compiled/webpack/4/bundle4.js:109317:16) to handleParseError ( /Users/workspace/React/umiapp/node_modules/@umijs/deps/compiled/webpack/ 4 /bundle4.js: 109371 : 10 ) at /Users/workspace/React/umiapp/node_modules/@umijs/deps/compiled/webpack/4/bundle4.js:109403:5 at /Users/workspace/React/umiapp/node_modules/@umijs/deps/compiled/webpack/4/bundle4.js:109258:12 at /Users/workspace/React/umiapp/node_modules/@umijs/deps/compiled/webpack/4/bundle4.js:61157:3 at iterateNormalLoaders (/Users/workspace/React/umiapp/node_modules/@umijs/deps/compiled/webpack/4/bundle4.js:60998:10) at Array.<anonymous> (/Users/workspace/React/umiapp/node_modules/@umijs/deps/compiled/webpack/4/bundle4.js:60989:4) { opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ], library: 'digital envelope routines', reason: 'unsupported', code: 'ERR_OSSL_EVP_UNSUPPORTED' } Node.js v18.7.0 ✨ Done in 1.92s.
It is said that this can be temporarily fixed by running the following command line
export NODE_OPTIONS=--openssl-legacy-provider
But the current test does not work, so I reinstalled node-v16.12.0, and npm also installed the corresponding version
Refer to https://nodejs.org/en/download/releases/ for the correspondence between node and npm versions
Read More:
- Copy node causes NPM execution error: cannot find module ‘/ / lib / utils/ unsupported.js ‘
- ImageIO.read () unsupported image type when reading picture_ exception Unsupported Image Type
- the digital signature for this file couldn’t be verified
- NPM run serve reported an error “NPM err! Missing script: start”
- Learn English together | three ways to realize digital factorial with JavaScript
- NPM can’t find D: //nodejs/node all of The solution of sudden_modules/NPM/bin/npm-cli.js
- Error msb3428 appears in NPM install: could not load the visual c + + component VCBuild.exe error
- Cnpm appears in the vscode terminal: unable to load the file C: \ “users \” gkk \ “appdata \” roaming \ “NPM \” cnpm
- Unsupported operation types unsupported operation data types
- Command failed: NPM install — loglevel error — registry= https://registry.npm.taobao.org
- Solution to Vue cli · failed to download repo vuejs templates/webpack: connect etimeout followed by an IP digital error message
- C language string processing error warning, c4996, sprintf, predicted, c4996, strcpy, c4996, strcat
- Solve the problem of docker error: Unsupported compose file version: 3.2
- wget OpenSSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
- Error: Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtim
- Cannot find module ‘.. / lib / utils / unsupported. JS’ problem in installing node in centos7
- firefox ssl_error_unsupported_version
- ERROR Unsupported method AndroidProject.getVariantNames().
- ERROR: Unsupported method: AndroidProject.getVariantNames().
- [Elasticsearch] es 7.12 Root mapping definition has unsupported parameters: _all