Step 3 – Run npm install commands

After installing the Node.js package, you need to run the following command in Terminal/CMD:

npm install

Terminal/CMD outcome

When the installation process is done, you need to run this command in Terminal/CMD:

npm install -g react-native-cli

Terminal/CMD outcome

If you get error such as “Error: EACCES: permission denied …”, you need to run this command: sudo npm install -g react-native-cli