error unrecognized command “run-android”. info run “react-native –help” to see a list of all available commands.

For anyone facing this errors, to resolve the problem, make sure:

  • You are in the project folder
  • You already did npm install (or yarn install if you use yarn instead of npm)
  • react-native is already in your package.json
  • You properly did react-native init to create your project (in case you’re starting an afresh app) – no error, hanging, or early termination during the process.
  • Already set up your environment correctly according to the docs https://reactnative.dev/docs/environment-setup


More Articles

How to start a new Github repo from an existing project

Assume that you have a project and you want to track it with Github. Navigate to the project folder,...

codezilla

codezilla

How to check for listening ports in Linux

Here is one of the most popular commands for troubleshooting network or specific application problem...

codezilla

codezilla

How to get octal file permissions from command line?

Sometimes we want to know the octal number representing the permission of a file like 755, 777, 664 ...

codezilla

codezilla