React Native ios build : Can't find node

后端 未结 4 789
无人共我
无人共我 2020-12-30 03:37

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

4条回答
  •  爱一瞬间的悲伤
    2020-12-30 04:21

    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
    

提交回复
热议问题