V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
brucewzp
V2EX  ›  React

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

  •  
  •   brucewzp · 2015-11-29 12:10:03 +08:00 · 5569 次点击
    这是一个创建于 3095 天前的主题,其中的信息可能已经有所发展或是发生改变。

    ../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 条回复    2015-11-29 17:02:10 +08:00
    Urumchi
        1
    Urumchi  
       2015-11-29 13:41:35 +08:00
    react-native-xcode.sh 开头加上
    source ~/.bash_profile
    oiken
        2
    oiken  
       2015-11-29 17:02:10 +08:00
    一楼说的对,我是在命令行里执行这条命令后才 run 的。 受教了。谢谢 Urumchi
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2950 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 66ms · UTC 11:01 · PVG 19:01 · LAX 04:01 · JFK 07:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.