React Native: Command `run-ios` unrecognized

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

    What caused this for me was running npm install --save axios when actually the system was previously using yarn instead of npm.

    To solve this, instead of deleting the node_modules folder, which can lead to more problems, and if you prefer to run npm anyway or don't have a preference either way, the error should have instructed for you to run npm install. If you literally follow those instructions, you will be able to run: react-native run-ios afterwards.

提交回复
热议问题