rn node 版本问题

news/2024/10/11 0:27:30

报错信息:Command PhaseScriptExecution failed with a nonzero exit code

Failed to construct transformer:  Error: error:0308010C:digital envelope routines::unsupportedat new Hash (node:internal/crypto/hash:79:19)at Object.createHash (node:crypto:139:10)at stableHash (/Users/zhengyan/works/app/sinochem-ubmp-app/node_modules/metro-cache/src/stableHash.js:19:8)at Object.getCacheKey (/Users/zhengyan/works/app/sinochem-ubmp-app/node_modules/metro-transform-worker/src/index.js:593:7)at getTransformCacheKey (/Users/zhengyan/works/app/sinochem-ubmp-app/node_modules/metro/src/DeltaBundler/getTransformCacheKey.js:24:19)at new Transformer (/Users/zhengyan/works/app/sinochem-ubmp-app/node_modules/metro/src/DeltaBundler/Transformer.js:48:9)at /Users/zhengyan/works/app/sinochem-ubmp-app/node_modules/metro/src/Bundler.js:22:29at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {opensslErrorStack: ['error:03000086:digital envelope routines::initialization error','error:0308010C:digital envelope routines::unsupported'],library: 'digital envelope routines',reason: 'unsupported',code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
error Cannot read properties of undefined (reading 'transformFile').
TypeError: Cannot read properties of undefined (reading 'transformFile')at Bundler.transformFile (/Users/zhengyan/works/app/sinochem-ubmp-app/node_modules/metro/src/Bundler.js:48:30)at process.processTicksAndRejections (node:internal/process/task_queues:95:5)at async Object.transform (/Users/zhengyan/works/app/sinochem-ubmp-app/node_modules/metro/src/lib/transformHelpers.js:101:12)at async processModule (/Users/zhengyan/works/app/sinochem-ubmp-app/node_modules/metro/src/DeltaBundler/traverseDependencies.js:137:18)at async traverseDependenciesForSingleFile (/Users/zhengyan/works/app/sinochem-ubmp-app/node_modules/metro/src/DeltaBundler/traverseDependencies.js:131:3)at async Promise.all (index 0)at async initialTraverseDependencies (/Users/zhengyan/works/app/sinochem-ubmp-app/node_modules/metro/src/DeltaBundler/traverseDependencies.js:114:3)at async DeltaCalculator._getChangedDependencies (/Users/zhengyan/works/app/sinochem-ubmp-app/node_modules/metro/src/DeltaBundler/DeltaCalculator.js:164:25)at async DeltaCalculator.getDelta (/Users/zhengyan/works/app/sinochem-ubmp-app/node_modules/metro/src/DeltaBundler/DeltaCalculator.js:94:16)at async DeltaBundler.buildGraph (/Users/zhengyan/works/app/sinochem-ubmp-app/node_modules/metro/src/DeltaBundler.js:50:5)
info Run CLI with --verbose flag for more details.

由于node版本升级引起的打包报错

解决办法:

  打开xcode   找到  Build Phases =>  Bundle react native code and images  添加   export NODE_OPTIONS=--openssl-legacy-provider
  

 

  

 

 

 

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.ryyt.cn/news/53690.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈,一经查实,立即删除!

相关文章

一图速览9种API接口测试

一图速览9种API接口测试,大家都懂了吗?值得收藏!

Serilog文档翻译系列(一) - 入门指南

保持优质文档是 Serilog 的优先事项。如果你发现文档中有缺失或不准确的内容,或者希望通过添加主题或教程来扩展 wiki,请通过问题追踪系统告知我们。 为什么选择Serilog? 与许多其他 .NET 库一样,Serilog 提供了基本的诊断日志记录功能,支持文件、控制台等多种方式。它易于…

数据分析1

数据分析:是把隐藏在一些看似杂乱无章的数据背后的信息提炼出来,总结出所研究对象的内在规律数据分析三剑客:Numpy,Pandas,MatplotlibNumPy(Numerical Python) 是 Python 语言的一个扩展程序库,支持大量的维度数组与矩阵运算,此外也针对数组运算提供大量的数学函数库。一、…

CSS调试 (1)

https://www.bilibili.com/video/BV1KM4y1G7EF/内容转自【浏览器调试工具精讲】Chrome Dev Tools精讲,前端必看! 橙色:外边距 蓝色:本体。 绿色:内边距。CTRL+ F 可以搜索 输入某一个string 或者 css,section#someid xpath: //section/p 编辑样式

多线程四-Lock锁及其原理分析

JUC是什么 可能有些不太关注底层代码,会不太理解juc是啥,比如之前的我,只知道是跟并发相关。juc其实就是并发包路径的缩写,java.util.concurrent.而Lock是其中锁的接口,有比如重入锁,读锁,写锁等一些具体实现。 这部分源码理解起来还是有些难度,暂时先理解其大概思路,…

Dijkstras algorithm All In One

Dijkstras algorithm All In One 迪杰斯特拉算法Dijkstras algorithm All In One迪杰斯特拉算法Dijkstra Dijkstras algorithm (/ˈdaɪkstrəz/ DYKE-strəz) is an algorithm for finding the shortest paths between nodes in a weighted graph, which may represent, for e…

Datawhale X 李宏毅苹果书AI夏令营 Task1打卡

3.1 局部极小值与鞍点 3.1.1 临界点及其分类参数对于损失函数的微分为零时,就无法进一步优化了,训练即停止了。所以我们把这些梯度为零的点统称为临界点 。 临界点可以分为两类:极值点 (局部极小值)和 鞍点 。 鞍点就是指那些梯度为零但不是局部极小值或者局部极大值的点,…

纪念第一次在 Github 上提 ISSUE 得到了老哥的回复

背景 第一次在 GitHub 上提 ISSUE,提问的内容就是我的上一篇博文 rustlings v6.0 运行时出现 “ You are trying to run Rustlings using the old method before version 6”,当时搞了好长时间都没思绪,然后就抱着试一试的心态在上面提了一个 ISSUE。 提问之后,又慢慢理了一…