Mac Create React Native App Install Command Not Found

Download here

Problem

  1. Mac Create React Native App Install Command Not Found Directly

‘react-native’ is not recognized as an internal or external command

While ejecting your project out of the Expo environment you can face this problem.

Solution

We will install create-react-app using npm. On terminal run the install command shown below. Npm install -g create-react-app. On successful installation you should see the output like above (note your create-react-app version may be different by the time you run this install command) Test create-react-app. To test the create-react-app, run below command.

To solve this problem, the solution is simple just install react-native-cli using the following command.

Mac Create React Native App Install Command Not Found Directly

The command will install the react-native-cli on your command line and you can use your react-native command which is located here

C:UsersAdminAppDataRoamingnpmreact-native -> C:UsersAdminAppDataRoamingnpmnode_modulesreact-native-cliindex.js

This guide will help you to get started using React Native on Windows to create a cross-platform app that will work on Android devices.

Overview

Mac Create React Native App Install Command Not Found Dead

React Native is an open-source mobile application framework created by Facebook. It is used to develop applications for Android, iOS, Web and UWP (Windows) providing native UI controls and full access to the native platform. Working with React Native requires an understanding of JavaScript fundamentals.

Get started with React Native by installing required tools

  1. Install Visual Studio Code (or your code editor of choice).
  • In the Windows search menu, enter: ‘Edit the system environment variables’, this will open the System Properties window.
  1. Install NodeJS for Windows You may want to consider using Node Version Manager (nvm) for Windows if you will be working with multiple projects and version of NodeJS. We recommend installing the latest LTS version for new projects.

Note

Mac Create React Native App Install Command Not Found Within

You may also want to consider installing and using the Windows Terminal for working with your preferred command-line interface (CLI), as well as, Git for version control. The Java JDK comes packaged with Android Studio v2.2+, but if you need to update your JDK separately from Android Studio, use the Windows x64 Installer.

Mac Create React Native App Install Command Not Found Windows 10

Create a new project with React Native

  1. Use npm to install the Expo CLI command line utility from the Windows Command Prompt, PowerShell, Windows Terminal, or the integrated terminal in VS Code (View > Integrated Terminal).

Tip

If you want to add support for your React Native app so that it runs as a Windows 10 app, see the Get started with React Native for Windows docs.

Additional resources

Download here