react native installation cli code example
Example 1: react native install
npm install -g react-native-cli
Example 2: install react native cli
if you have nodejs in your system then open terminal and install
react-native-cli globly via
sudo yarn add react-native-cli
npm install yarn (if donot have yarn install)
to check nodejs via node -v and check package manager via npm -v