If the above command run successfully then no need to run this command curl -0 -L | sudo sh 3. If you get an error like Cannot find module ‘npmlog’ you can install npm directly using this command. Furthermore, Install React Native CLI For installing React Native CLI run below command on terminal npm install -g react-native-cli
just run below command sudo apt install nodejs npm 1.3 Verify nodejs installation or you can say check nodejs version using this command nodejs – version 1.4 Now install npm sudo apt install npm 1.5 Verify the installation npm – version or npm -v 2. 1.1 Update apt package manager sudo apt update 1.2 Install nodejs using apt package manager. Firstly, We have to install Node.JS and npm for React Native mobile app development.