Source from computingforgeeks.com.
Layout Guide Github-Formatting
--Arrange By Julius Leonardo
sudo apt update
curl -sL https://deb.nodesource.com/setup_14.x | sudo bash -
The script above will create apt sources list file for the NodeSource Node.js 14.x repo:
# Ubuntu 20.04 example
$ cat /etc/apt/sources.list.d/nodesource.list
deb https://deb.nodesource.com/node_14.x focal main
deb-src https://deb.nodesource.com/node_14.x focal main
Once the repository is added, you can begin the installation of Node.js 14 on Ubuntu Linux:
sudo apt -y install nodejs
Verify the version of Node.js installed.
$ node -v
v14.17.5
Source from www.tecmint.com
$ sudo apt install npm
$ npm --version
6.14.4 [Output]
sudo npm -g install create-react-app
Once installed, you can confirm the version of installed by running:
$ create-react-app --version
4.0.1 [Output]
$ create-react-app tecmint-app
This takes roughly 5 minutes to install all the packages, libraries, and tools needed by the application. Some patience will come in handy.
If the creation of the application was successful, you will get the notification below giving the basic commands that you can run to start managing the application.
$ cd tecmint-app
$ npm start
You will end up getting the output below showing you how to access the application on the browser.
Fire up your browser and browse your server’s IP address
http://server-ip:3000 // anyport