React Native ios build : Can't find node

后端 未结 4 788
无人共我
无人共我 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:14

    The solution for me is to set a default version of node with nvm in your profile. This works for bash or zsh:

    Add this to your .zshrc or .bashrc

    # default node version for nvm
    nvm use 8.9.3
    

    Be sure to change it to the version you want when starting a new terminal.

提交回复
热议问题