【问题标题】:React-Natice ERR_OSSL_EVP_UNSUPPORTED errorReact-Native ERR_OSSL_EVP_UNSUPPORTED 错误
【发布时间】:2021-12-25 10:58:48
【问题描述】:

在安装 react native 时,我在删除主机时遇到错误 我使用的命令

npx react-native start

我遇到的错误

  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'

【问题讨论】:

  • 请澄清您的具体问题或提供其他详细信息以准确突出您的需求。正如目前所写的那样,很难准确地说出你在问什么。
  • 在构建发布 apk 时也出现此错误

标签: react-native android-studio installation


【解决方案1】:

我相信它与Getting error 'digital envelope routines', reason: 'unsupported', code: 'ERR_OSSL_EVP_UNSUPPORTED'有关

在运行 npx react-native start 之前尝试以下设置

export NODE_OPTIONS=--openssl-legacy-provider

是的,这将导致 iOS 中的发布 apk 出现问题。我想知道在构建阶段的Bundle React Native代码和图像中的脚本中添加环境变量是否可以。我可以分享它是怎么回事。再次似乎是可能触发问题的节点升级。一个不错的阅读可以在下面找到

https://github.com/webpack/webpack/issues/14532

【讨论】:

    猜你喜欢
    • 2022-12-17
    • 2019-06-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-10-05
    • 2022-11-21
    • 2022-12-22
    相关资源
    最近更新 更多