React JS Installation in Ubuntu System

Azad Singh
1 min readJan 25, 2021

Remember you first need to have curl on your machine, you can install it by below command
sudo apt-get install curl

All Node js version available on below url
https://askubuntu.com/questions/426750/how-can-i-update-my-nodejs-to-the-latest-version

And now we can install Nodejs by below command:
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs

If you had Nodejs before on your machine you need to update NPM (Node package manager), it is an optional command
remember npm comes with Nodejs itself and doesn’t need to install it separately
sudo npm install npm@latest -g

Install Create-React-App Tool on your machine
Now we need to install a tool called create-react-app by using NPM as global
npm install -g create-react-app

Permission on path
sudo chmod -R 777 /var/DirectoryName

sudo npm install -g create-react-app

Create a New React Project by create-react-app command
After installing create-react-app, we can create our first React app by using this command:
npx create-react-app my-app

Running the React Application
We can run our app on our machine
first, we change our directory to my-app
cd my-app

then we can run it by this command:
npm start

And you can see your project on below URL
http://localhost:3000

--

--