- There are two possible reasons for the command not found error: either the CLI has not been set up on your local machine, or it is installed but not configured properly.
- You can prevent both of these scenarios by using npx for all npm executables. For instance, use npx to launch the following code to create a new React Native application:
npx react-native init ProjectName
- Before starting the project, this will install the most recent version of the react-native package.