[英]React-native error:0308010C:digital envelope routines::unsupported
I am constantly getting the ERR_OSSL_EVP_UNSUPPORTED error, I did some research on the internet, I did what was said, but the error did not get fixed, what could be the reason?我经常收到 ERR_OSSL_EVP_UNSUPPORTED 错误,我在互联网上做了一些研究,我按照所说的做了,但错误没有得到修复,可能是什么原因? json.package is as follows. json.package如下。
{
"name": "intelijReactNative",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"build": "react-scripts --openssl-legacy-provider build",
"start": "react-scripts --openssl-legacy-provider start",
"test": "jest",
"lint": "eslint ."
},
"dependencies": {
"react": "17.0.2",
"react-native": "0.66.3"
},
"devDependencies": {
"@babel/core": "7.16.0",
"@babel/runtime": "7.16.3",
"@react-native-community/eslint-config": "2.0.0",
"babel-jest": "26.6.3",
"eslint": "7.14.0",
"jest": "26.6.3",
"metro-react-native-babel-preset": "0.66.2",
"react-test-renderer": "17.0.2"
},
"jest": {
"preset": "react-native"
}
the error is as below错误如下
Failed to construct transformer: Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:67:19)
at Object.createHash (node:crypto:130:10)
at stableHash (C:\Users\furka\Desktop\intelijReactNative\node_modules\metro-cache\src\stableHash.js:19:8)
at Object.getCacheKey (C:\Users\furka\Desktop\intelijReactNative\node_modules\metro-transform-worker\src\index.js:593:7)
at getTransformCacheKey (C:\Users\furka\Desktop\intelijReactNative\node_modules\metro\src\DeltaBundler\getTransformCacheKey.js:24:19)
at new Transformer (C:\Users\furka\Desktop\intelijReactNative\node_modules\metro\src\DeltaBundler\Transformer.js:48:9)
at C:\Users\furka\Desktop\intelijReactNative\node_modules\metro\src\Bundler.js:22:29
at runNextTicks (node:internal/process/task_queues:61:5)
at processTimers (node:internal/timers:497:9) {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
I had the same error.我有同样的错误。 If you are using Node version 17+, It isn't compatible with some webpack stuff yet.如果您使用的是 Node 版本 17+,它与一些 webpack 的东西不兼容。 Use the LTS version instead.请改用 LTS 版本。 At v16.13.0在 v16.13.0
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.