# Fix 'unrecognized command run-ios' in React Native

> Learn how to fix the unrecognized command run-ios error in React Native, which happens when you run npx react-native run-ios outside the project folder.

Author: [Flavio Copes](https://flaviocopes.com/about/) | Published: 2020-10-20 | Canonical: https://flaviocopes.com/react-native-fix-unrecognized-run-ios-error/

I was starting a new [React](https://flaviocopes.com/react/) Native project and I ran the command

```bash
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
