gpt4 book ai didi

android - react native 错误:0308010C:数字信封例程::不支持

转载 作者:行者123 更新时间:2023-12-04 23:41:41 25 4
gpt4 key购买 nike

我不断收到 ERR_OSSL_EVP_UNSUPPORTED 错误,我在互联网上做了一些研究,我按照所说的做了,但错误没有得到修复,可能是什么原因? 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"
}
错误如下
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'
}

最佳答案

我有同样的错误。如果你使用的是 Node 17+,它与一些 webpack 的东西还不兼容。
请改用 LTS 版本。在 v16.13.0

关于android - react native 错误:0308010C:数字信封例程::不支持,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70058295/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com