React Native: Command `run-ios` unrecognized

前端 未结 14 2174
野性不改
野性不改 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
    

提交回复
热议问题