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

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

问题描述

我已经准备好要使用的原型,并且该项目被构建卡住了。


错误:找不到二进制节点构建React Native捆绑包如果您
具有非标准的nodejs安装,请在Xcode中选择您的项目,
找到'Build Phases'-'Bundle React Native code and images'并将
NODE_BINARY更改为节点可执行文件的绝对路径(您可以通过在终端中调用哪个节点来找到


此反馈对我来说是无奈的,我确实有与nvm的节点。

解决方案

我发现一个


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构建:找不到节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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