Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native: Command `run-ios` unrecognized

Tags:

react-native

I have two different ReactNative-Projects:

  • a) a project from januar 2016
  • b) a complete new react-native project from now (march 20th 2016)

Within the new project the cli tool of react-native contains the command "run-ios" next two "run-android", but not on the older project from januar 2016. On the older one there is not "run-ios" command available:

$ react-native run-ios Command `run-ios` unrecognized Usage: react-native <command> 

I already ran "react-native upgrade" without any issues.

How can i get the command "run-ios" also in older projects?

like image 491
delete Avatar asked Mar 20 '16 20:03

delete


Video Answer


1 Answers

Just update the version of react native in your project with the following command:

$> npm install --save react-native@latest 
like image 196
itinance Avatar answered Sep 29 '22 09:09

itinance