brucewzp
V2EX  ›  React

求帮助, react-native 的 iOS 项目不能跑, react-native: command not found

  •  
  •   brucewzp · Nov 29, 2015 · 6433 views
    This topic created in 3833 days ago, the information mentioned may be changed or developed.

    ../node_modules/react-native/packager/react-native-xcode.sh: line 45: react-native: command not found
    Command /bin/sh failed with exit code 127

    有谁遇到过嘛?试过网上的方法还是依旧

    2 replies    2015-11-29 17:02:10 +08:00
    Urumchi
        1
    Urumchi  
       Nov 29, 2015
    react-native-xcode.sh 开头加上
    source ~/.bash_profile
    oiken
        2
    oiken  
       Nov 29, 2015
    一楼说的对,我是在命令行里执行这条命令后才 run 的。 受教了。谢谢 Urumchi
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2687 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 15:42 · PVG 23:42 · LAX 08:42 · JFK 11:42
    ♥ Do have faith in what you're doing.