React Native: Command `run-ios` unrecognized
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?
Just update the version of react native in your project with the following command: $> npm install --save react-native@latest
What caused this for me was running npm install --save [package] when actually the system has previously been using yarn instead of npm . To solve this I just deleted the node_modules folder and ran: yarn install and afte...
不知怎么就进来了,先看看
ReplyDelete不知怎么就进来了,先看看
ReplyDelete:mrgreen:
ReplyDelete