React JS Installation in Ubuntu System

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

And now we can install Nodejs by below command:
curl -sL | 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

Full Stack Developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store