React native CLI installation guide on MacOS

Jahrulo C RayJahrulo C Ray
1 min read

The whole process is divided into 3 main steps one should follow, also it takes patience and perseverance to archive this goal, setting up the development environment really sucks but if you really put your mind into it, YOU CAN DO IT

  1. install Homebrew

    It provides access to thousands of open-source software packages, you can use it to install any software package you want. visit Homebrew's website it can be installed through your terminal.

  2. Use Homebrew to install the needed packages

    Node

     brew install node
    

    Watchman

     brew install watch
    

    Ruby, gem, cocoapods

     brew install ruby
    
     sudo gem install -n /user/local/bin ffi cocoapods
    

    After installing these packages make sure to confirm if it has being installed by using the command line packageName --version on your terminal and uh lastly all theses commands should be done one after the other.

  3. Install react native cli latest version

     // inside the directory that you want to build your app
     npx react-native@latest init myProject
    

This command will create the react native template app, follow through with the instructions that it's prompting and there might be minor caveats though..

0
Subscribe to my newsletter

Read articles from Jahrulo C Ray directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Jahrulo C Ray
Jahrulo C Ray