React Native ios build:找不到节点 [英] React Native ios build : Can't find node

查看:34
本文介绍了React Native ios build:找不到节点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个原型可以使用,但项目被构建阻塞了:

<块引用>

错误:找不到节点"二进制文件来构建 React Native 包如果你有非标准的 nodejs 安装,在 Xcode 中选择你的项目,找到构建阶段"-捆绑 React Native 代码和图像"并更改NODE_BINARY 到您的节点可执行文件的绝对路径(您可以找到它通过在终端中调用哪个节点")

这个反馈对我来说很无助,我确实有带 nvm 的节点.这与bash有关吗?

解决方案

我找到了一个

I have a prototype ready to go and the project is jammed with build:

error: Can't find 'node' binary to build React Native bundle If you have non-standard nodejs installation, select your project in Xcode, find 'Build Phases' - 'Bundle React Native code and images' and change NODE_BINARY to absolute path to your node executable (you can find it by invoking 'which node' in the terminal)

this feedback is helpless for me, i do have node with nvm. is this something related to bash?

解决方案

I found one solution

First find your current node, in shell

which node

then copy your node url to

export NODE_BINARY=[your node path]
../node_modules/react-native/packager/react-native-xcode.sh to node_modules/react-native/scripts/react-native-xcode.sh

这篇关于React Native ios build:找不到节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆