I started React Native tutorial series for beginners to learn in best coding practices. Subscribe to the Asbar YouTube channel and follow me to get notify when other videos and articles are published.

In this tutorial, I am going to show you how to setup the java, node and react Native CLI in linux.

Now, open the terminal and copy paste the following commands in the terminal one by one.

1. Install Java JDK

(i) Use this command to manage the repositories.

sudo apt-get install python-software-properties

(ii) Adding this PPA to your system

sudo add-apt-repository ppa:webupd8team/java

(iii) Updates the package lists

sudo apt-get update

(iv) install the installer script

sudo apt-get install oracle-java8-installer

Then you will get a pop-up same as below,

Then after press Yes for continue

(v) Set Java Environment variable

sudo apt install oracle-java8-set-default

If successfully installed and then you will get this kind of output for the command java -version,

2.Install Node using NVM

(i) Build essential package

sudo apt-get install build-essential checkinstall

(ii) Get libssl-dev

sudo apt-get install libssl-dev

(iii) Install nvm using cURL. If you want to change the NVM version, just replace the version number instead of 0.33.1 .

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash

(iv) Check installation work. If installed, open with new terminal and use the following code.

command -v nvm

Then, nvm string will give as output as below,

(v) List available node versions

nvm ls-remote

All available versions will be printed as below,

(vi) Following command is used to download, compile and install node. You can install any nodejs version using following command.

nvm install 11.3.0

(vii) Tell nvm which version to use. You can easily checkout to any node version in the same machine using this command.

nvm use 11.3.0

(viii) Set default node version

nvm alias default node 11.3.0

If you type the command nvm ls and then you can see all installed and default node versions.

3. Install the react native CLI

(i) Install npm. If you already installed npm, then do need this command,

sudo apt-get install npm

(ii) Install React Native CLI

sudo npm install -g react-native-cli

Have a nice day!!!

Check Websosite for Mobile App Development Services

--

--