Skip to content

How to solve the "unrecognized command run-ios" error with React Native

New Course Coming Soon:

Get Really Good at Git

A quick guide to how I solved a confusing React Native error

I was starting a new React Native project and I ran the command

npx react-native run-ios

to start it.

I got an error back with this line in it:

unrecognized command "run-ios"

I could not figure this out, until I realized I was running this command in my home folder.

Instead, this needs to be run from inside the project’s folder.

cd into the React Native project, and this error should go away and your React Native app should start successfully

Are you intimidated by Git? Can’t figure out merge vs rebase? Are you afraid of screwing up something any time you have to do something in Git? Do you rely on ChatGPT or random people’s answer on StackOverflow to fix your problems? Your coworkers are tired of explaining Git to you all the time? Git is something we all need to use, but few of us really master it. I created this course to improve your Git (and GitHub) knowledge at a radical level. A course that helps you feel less frustrated with Git. Launching May 21, 2024. Join the waiting list!
→ Get my React Beginner's Handbook
→ Read my full React Tutorial on The Valley of Code

Here is how can I help you: