React Native: Command `run-ios` unrecognized

前端 未结 14 2073
野性不改
野性不改 2020-12-23 16:01

I have two different ReactNative-Projects:

  • a) a project from januar 2016
  • b) a complete new react-native project from now (march 20th 2016)
相关标签:
14条回答
  • 2020-12-23 16:52
     $ react-native run-ios
    

    If you get this kinda error:

    "Command run-ios unrecognized. Make sure that you have run npm install and that you are inside a react-native project".

    In terminal, make sure you are inside a react-native project directory.

    Execute this cmd:

    $ react-native -v
    react-native-cli: 2.0.1
    react-native: n/a - not inside a React Native project directory
    $ npm update
    $ react-native -v
    react-native-cli: 2.0.1
    react-native: 0.44.0
    $ react-native run-ios
    
    0 讨论(0)
  • 2020-12-23 16:52

    For me, Xcode was already running.

    Close the Xcode and then in the terminal, make sure you are inside a react-native project directory and then execute react-native run-ios command

    0 讨论(0)
提交回复
热议问题